Table of Contents

Class Map<K, V>

Namespace
Java.Util
Assembly
MASES.JNet.dll
public class Map<K, V> : JVMBridgeBase<Map<K, V>>, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBase>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, IMap<K, V>

Type Parameters

K
V
Inheritance
Map<K, V>
Implements
IMap<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>>.DynBridgeClazz
JVMBridgeBase<Map<K, V>>.BridgeClazz
JVMBridgeBase.ReferenceEqualsJVM(IJVMBridgeBase, IJVMBridgeBase)
JVMBridgeBase.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.CastToAndDetach<TNewClass>()
JVMBridgeBase.CastDirect<TNewClass>()
JVMBridgeBase.CastDirectAndDetach<TNewClass>()
JVMBridgeBase.CheckDisposed()
JVMBridgeBase.ToString()
JVMBridgeBase.Equals(IJVMBridgeBase)
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeListener
Extension Methods

Constructors

Map(IJVMBridgeBaseInitializer)

Initializer used internally by JCOBridge. Do not use directly.

[Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public Map(IJVMBridgeBaseInitializer initializer)

Parameters

initializer IJVMBridgeBaseInitializer

Map(params object[])

Generic constructor used by JCOBridge when a derived class needs to forward arguments to the base 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[]

Remarks

Map represents a JVM interface or abstract class in .NET. Instantiating it directly outside of JCOBridge infrastructure is not supported and may produce undefined behavior.

Properties

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

true if the BridgeClassName is an abstract class, i.e. cannot be created an instance

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

true if the BridgeClassName implements java.lang.AutoCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

true if the BridgeClassName is an interface, i.e. does not have any public constructor

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

true if the BridgeClassName is a static class, i.e. does not have any public constructor

public override bool IsBridgeStatic { get; }

Property Value

bool

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

arg0 K

K

arg1 Function<Arg1objectSuperK, Arg1ExtendsV>

Function

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 K

K

arg1 BiFunction<Arg1objectSuperK, Arg1objectSuperV, Arg1ExtendsV>

BiFunction

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 K

K

arg1 BiFunction<Arg1objectSuperK, Arg1objectSuperV, Arg1ExtendsV>

BiFunction

Returns

V

V

Type Parameters

Arg1objectSuperK

K

Arg1objectSuperV

V

Arg1ExtendsV

V

ContainsKey(object)

public bool ContainsKey(object arg0)

Parameters

arg0 object

object

Returns

bool

bool

ContainsValue(object)

public bool ContainsValue(object arg0)

Parameters

arg0 object

object

Returns

bool

bool

EntrySet()

public Set<Map.Entry<K, V>> EntrySet()

Returns

Set<Map.Entry<K, V>>

Set

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>

BiConsumer

Type Parameters

Arg0objectSuperK

K

Arg0objectSuperV

V

Get(object)

public V Get(object arg0)

Parameters

arg0 object

object

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

arg0 object

object

arg1 V

V

Returns

V

V

IsEmpty()

public bool IsEmpty()

Returns

bool

bool

KeySet()

public Set<K> KeySet()

Returns

Set<K>

Set

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 K

K

arg1 V

V

arg2 BiFunction<Arg2objectSuperV, Arg2objectSuperV, Arg2ExtendsV>

BiFunction

Returns

V

V

Type Parameters

Arg2objectSuperV

V

Arg2ExtendsV

V

Put(K, V)

public V Put(K arg0, V arg1)

Parameters

arg0 K

K

arg1 V

V

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

arg0 Map<Arg0ExtendsK, Arg0ExtendsV>

Map

Type Parameters

Arg0ExtendsK

K

Arg0ExtendsV

V

PutIfAbsent(K, V)

public V PutIfAbsent(K arg0, V arg1)

Parameters

arg0 K

K

arg1 V

V

Returns

V

V

Remove(object)

public V Remove(object arg0)

Parameters

arg0 object

object

Returns

V

V

Remove(object, object)

public bool Remove(object arg0, object arg1)

Parameters

arg0 object

object

arg1 object

object

Returns

bool

bool

Replace(K, V)

public V Replace(K arg0, V arg1)

Parameters

arg0 K

K

arg1 V

V

Returns

V

V

Replace(K, V, V)

public bool Replace(K arg0, V arg1, V arg2)

Parameters

arg0 K

K

arg1 V

V

arg2 V

V

Returns

bool

bool

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>

BiFunction

Type Parameters

Arg0objectSuperK

K

Arg0objectSuperV

V

Arg0ExtendsV

V

Size()

public int Size()

Returns

int

int

Values()

public Collection<V> Values()

Returns

Collection<V>

Collection

Operators

implicit operator Map(Map<K, V>)

Converter from Map<K, V> to Map

public static implicit operator Map(Map<K, V> t)

Parameters

t Map<K, V>

Returns

Map

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>

Returns

Properties