Class Map<K, V>
public class Map<K, V> : JVMBridgeBase<Map<K, V>>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, IMap<K, V>
Type Parameters
K
V
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<Map<K, V>>Map<K, V>
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinitionIMap<K, V>
- Derived
- Inherited Members
-
JVMBridgeBase<Map<K, V>>.IsAssignableFrom(IJavaType)JVMBridgeBase<Map<K, V>>.IsAssignableFrom<T>()JVMBridgeBase<Map<K, V>>.Execute<T>(params T[])JVMBridgeBase<Map<K, V>>.DynBridgeClazzJVMBridgeBase<Map<K, V>>.BridgeClazzJVMBridgeBase.RuntimeClassNameOf<T>()JVMBridgeBase.ClassNameOf<T>()JVMBridgeBase.ClassOf<T>()JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)JVMBridgeBase.MonitorEnter()JVMBridgeBase.MonitorExit()JVMBridgeBase.IsInstanceOf(IJavaType)JVMBridgeBase.IsInstanceOf<T>()JVMBridgeBase.RuntimeIsInstanceOf<T>()JVMBridgeBase.CastTo<TNewClass>()JVMBridgeBase.CastDirect<TNewClass>()JVMBridgeBase.Dispose()JVMBridgeBase.ToString()JVMBridgeBase.GetHashCode()JVMBridgeBase.Notify()JVMBridgeBase.NotifyAll()JVMBridgeBase.Wait()JVMBridgeBase.IExecuteWithSignature<TNewClass, TReturn, TConverter>(string, string, params object[])JVMBridgeBase.DynBridgeInstanceJVMBridgeBase.BridgeInstanceJVMBridgeBase.IsBridgeListener
- Extension Methods
Constructors
Map()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
[Obsolete("Map class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public Map()
Map(params object[])
Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class
[Obsolete("Map class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public Map(params object[] args)
Parameters
args
object[]
Properties
BridgeClassName
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
Property Value
IsBridgeAbstract
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
public override bool IsBridgeStatic { get; }
Property Value
Methods
Clear()
public void Clear()
ComputeIfAbsent<Arg1objectSuperK, Arg1ExtendsV>(K, Function<Arg1objectSuperK, Arg1ExtendsV>)
public V ComputeIfAbsent<Arg1objectSuperK, Arg1ExtendsV>(K arg0, Function<Arg1objectSuperK, Arg1ExtendsV> arg1) where Arg1objectSuperK : K where Arg1ExtendsV : V
Parameters
Returns
- V
V
Type Parameters
Arg1objectSuperK
K
Arg1ExtendsV
V
ComputeIfPresent<Arg1objectSuperK, Arg1objectSuperV, Arg1ExtendsV>(K, BiFunction<Arg1objectSuperK, Arg1objectSuperV, Arg1ExtendsV>)
public V ComputeIfPresent<Arg1objectSuperK, Arg1objectSuperV, Arg1ExtendsV>(K arg0, BiFunction<Arg1objectSuperK, Arg1objectSuperV, Arg1ExtendsV> arg1) where Arg1objectSuperK : K where Arg1objectSuperV : V where Arg1ExtendsV : V
Parameters
arg0
KK
arg1
BiFunction<Arg1objectSuperK, Arg1objectSuperV, Arg1ExtendsV>
Returns
- V
V
Type Parameters
Arg1objectSuperK
K
Arg1objectSuperV
V
Arg1ExtendsV
V
Compute<Arg1objectSuperK, Arg1objectSuperV, Arg1ExtendsV>(K, BiFunction<Arg1objectSuperK, Arg1objectSuperV, Arg1ExtendsV>)
public V Compute<Arg1objectSuperK, Arg1objectSuperV, Arg1ExtendsV>(K arg0, BiFunction<Arg1objectSuperK, Arg1objectSuperV, Arg1ExtendsV> arg1) where Arg1objectSuperK : K where Arg1objectSuperV : V where Arg1ExtendsV : V
Parameters
arg0
KK
arg1
BiFunction<Arg1objectSuperK, Arg1objectSuperV, Arg1ExtendsV>
Returns
- V
V
Type Parameters
Arg1objectSuperK
K
Arg1objectSuperV
V
Arg1ExtendsV
V
ContainsKey(object)
public bool ContainsKey(object arg0)
Parameters
Returns
ContainsValue(object)
public bool ContainsValue(object arg0)
Parameters
Returns
CopyOf<Arg0ExtendsK, Arg0ExtendsV>(Map<Arg0ExtendsK, Arg0ExtendsV>)
public static Map<K, V> CopyOf<Arg0ExtendsK, Arg0ExtendsV>(Map<Arg0ExtendsK, Arg0ExtendsV> arg0) where Arg0ExtendsK : K where Arg0ExtendsV : V
Parameters
Returns
Type Parameters
Arg0ExtendsK
K
Arg0ExtendsV
V
EntryMethod(K, V)
public static Map.Entry<K, V> EntryMethod(K arg0, V arg1)
Parameters
arg0
KK
arg1
VV
Returns
EntrySet()
public Set<Map.Entry<K, V>> EntrySet()
Returns
ForEach<Arg0objectSuperK, Arg0objectSuperV>(BiConsumer<Arg0objectSuperK, Arg0objectSuperV>)
public void ForEach<Arg0objectSuperK, Arg0objectSuperV>(BiConsumer<Arg0objectSuperK, Arg0objectSuperV> arg0) where Arg0objectSuperK : K where Arg0objectSuperV : V
Parameters
arg0
BiConsumer<Arg0objectSuperK, Arg0objectSuperV>
Type Parameters
Arg0objectSuperK
K
Arg0objectSuperV
V
Get(object)
public V Get(object arg0)
Parameters
Returns
- V
V
Get(K)
public virtual V Get(K key)
Parameters
key
K
Returns
- V
GetOrDefault(object, V)
public V GetOrDefault(object arg0, V arg1)
Parameters
Returns
- V
V
IsEmpty()
public bool IsEmpty()
Returns
KeySet()
public Set<K> KeySet()
Returns
Merge<Arg2objectSuperV, Arg2ExtendsV>(K, V, BiFunction<Arg2objectSuperV, Arg2objectSuperV, Arg2ExtendsV>)
public V Merge<Arg2objectSuperV, Arg2ExtendsV>(K arg0, V arg1, BiFunction<Arg2objectSuperV, Arg2objectSuperV, Arg2ExtendsV> arg2) where Arg2objectSuperV : V where Arg2ExtendsV : V
Parameters
arg0
KK
arg1
VV
arg2
BiFunction<Arg2objectSuperV, Arg2objectSuperV, Arg2ExtendsV>
Returns
- V
V
Type Parameters
Arg2objectSuperV
V
Arg2ExtendsV
V
Of()
public static Map<K, V> Of()
Returns
Of(K, V)
public static Map<K, V> Of(K arg0, V arg1)
Parameters
arg0
KK
arg1
VV
Returns
Of(K, V, K, V)
public static Map<K, V> Of(K arg0, V arg1, K arg2, V arg3)
Parameters
arg0
KK
arg1
VV
arg2
KK
arg3
VV
Returns
Of(K, V, K, V, K, V)
public static Map<K, V> Of(K arg0, V arg1, K arg2, V arg3, K arg4, V arg5)
Parameters
arg0
KK
arg1
VV
arg2
KK
arg3
VV
arg4
KK
arg5
VV
Returns
Of(K, V, K, V, K, V, K, V)
public static Map<K, V> Of(K arg0, V arg1, K arg2, V arg3, K arg4, V arg5, K arg6, V arg7)
Parameters
arg0
KK
arg1
VV
arg2
KK
arg3
VV
arg4
KK
arg5
VV
arg6
KK
arg7
VV
Returns
Of(K, V, K, V, K, V, K, V, K, V)
public static Map<K, V> Of(K arg0, V arg1, K arg2, V arg3, K arg4, V arg5, K arg6, V arg7, K arg8, V arg9)
Parameters
arg0
KK
arg1
VV
arg2
KK
arg3
VV
arg4
KK
arg5
VV
arg6
KK
arg7
VV
arg8
KK
arg9
VV
Returns
Of(K, V, K, V, K, V, K, V, K, V, K, V)
public static Map<K, V> Of(K arg0, V arg1, K arg2, V arg3, K arg4, V arg5, K arg6, V arg7, K arg8, V arg9, K arg10, V arg11)
Parameters
arg0
KK
arg1
VV
arg2
KK
arg3
VV
arg4
KK
arg5
VV
arg6
KK
arg7
VV
arg8
KK
arg9
VV
arg10
KK
arg11
VV
Returns
Of(K, V, K, V, K, V, K, V, K, V, K, V, K, V)
public static Map<K, V> Of(K arg0, V arg1, K arg2, V arg3, K arg4, V arg5, K arg6, V arg7, K arg8, V arg9, K arg10, V arg11, K arg12, V arg13)
Parameters
arg0
KK
arg1
VV
arg2
KK
arg3
VV
arg4
KK
arg5
VV
arg6
KK
arg7
VV
arg8
KK
arg9
VV
arg10
KK
arg11
VV
arg12
KK
arg13
VV
Returns
Of(K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V)
public static Map<K, V> Of(K arg0, V arg1, K arg2, V arg3, K arg4, V arg5, K arg6, V arg7, K arg8, V arg9, K arg10, V arg11, K arg12, V arg13, K arg14, V arg15)
Parameters
arg0
KK
arg1
VV
arg2
KK
arg3
VV
arg4
KK
arg5
VV
arg6
KK
arg7
VV
arg8
KK
arg9
VV
arg10
KK
arg11
VV
arg12
KK
arg13
VV
arg14
KK
arg15
VV
Returns
Of(K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V)
public static Map<K, V> Of(K arg0, V arg1, K arg2, V arg3, K arg4, V arg5, K arg6, V arg7, K arg8, V arg9, K arg10, V arg11, K arg12, V arg13, K arg14, V arg15, K arg16, V arg17)
Parameters
arg0
KK
arg1
VV
arg2
KK
arg3
VV
arg4
KK
arg5
VV
arg6
KK
arg7
VV
arg8
KK
arg9
VV
arg10
KK
arg11
VV
arg12
KK
arg13
VV
arg14
KK
arg15
VV
arg16
KK
arg17
VV
Returns
Of(K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V)
public static Map<K, V> Of(K arg0, V arg1, K arg2, V arg3, K arg4, V arg5, K arg6, V arg7, K arg8, V arg9, K arg10, V arg11, K arg12, V arg13, K arg14, V arg15, K arg16, V arg17, K arg18, V arg19)
Parameters
arg0
KK
arg1
VV
arg2
KK
arg3
VV
arg4
KK
arg5
VV
arg6
KK
arg7
VV
arg8
KK
arg9
VV
arg10
KK
arg11
VV
arg12
KK
arg13
VV
arg14
KK
arg15
VV
arg16
KK
arg17
VV
arg18
KK
arg19
VV
Returns
OfEntries<Arg0ExtendsK, Arg0ExtendsV>(params Entry<Arg0ExtendsK, Arg0ExtendsV>[])
public static Map<K, V> OfEntries<Arg0ExtendsK, Arg0ExtendsV>(params Map.Entry<Arg0ExtendsK, Arg0ExtendsV>[] arg0) where Arg0ExtendsK : K where Arg0ExtendsV : V
Parameters
Returns
Type Parameters
Arg0ExtendsK
K
Arg0ExtendsV
V
Put(K, V)
public V Put(K arg0, V arg1)
Parameters
arg0
KK
arg1
VV
Returns
- V
V
PutAll<Arg0ExtendsK, Arg0ExtendsV>(Map<Arg0ExtendsK, Arg0ExtendsV>)
public void PutAll<Arg0ExtendsK, Arg0ExtendsV>(Map<Arg0ExtendsK, Arg0ExtendsV> arg0) where Arg0ExtendsK : K where Arg0ExtendsV : V
Parameters
Type Parameters
Arg0ExtendsK
K
Arg0ExtendsV
V
PutIfAbsent(K, V)
public V PutIfAbsent(K arg0, V arg1)
Parameters
arg0
KK
arg1
VV
Returns
- V
V
Remove(object)
public V Remove(object arg0)
Parameters
Returns
- V
V
Remove(object, object)
public bool Remove(object arg0, object arg1)
Parameters
Returns
Replace(K, V)
public V Replace(K arg0, V arg1)
Parameters
arg0
KK
arg1
VV
Returns
- V
V
Replace(K, V, V)
public bool Replace(K arg0, V arg1, V arg2)
Parameters
arg0
KK
arg1
VV
arg2
VV
Returns
ReplaceAll<Arg0objectSuperK, Arg0objectSuperV, Arg0ExtendsV>(BiFunction<Arg0objectSuperK, Arg0objectSuperV, Arg0ExtendsV>)
public void ReplaceAll<Arg0objectSuperK, Arg0objectSuperV, Arg0ExtendsV>(BiFunction<Arg0objectSuperK, Arg0objectSuperV, Arg0ExtendsV> arg0) where Arg0objectSuperK : K where Arg0objectSuperV : V where Arg0ExtendsV : V
Parameters
arg0
BiFunction<Arg0objectSuperK, Arg0objectSuperV, Arg0ExtendsV>
Type Parameters
Arg0objectSuperK
K
Arg0objectSuperV
V
Arg0ExtendsV
V
Size()
public int Size()
Returns
Values()
public Collection<V> Values()
Returns
Operators
implicit operator Map(Map<K, V>)
public static implicit operator Map(Map<K, V> t)
Parameters
t
Map<K, V>
Returns
implicit operator Properties(Map<K, V>)
Useful converter from Map<K, V> to Properties
public static implicit operator Properties(Map<K, V> t)
Parameters
t
Map<K, V>