Class Hashtable<K, V>
public class Hashtable<K, V> : Dictionary<K, V>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Type Parameters
K
V
- Inheritance
-
JVMBridgeBase<Dictionary<K, V>>Dictionary<K, V>Hashtable<K, V>
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
Hashtable()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
public Hashtable()
Hashtable(Map<K, V>)
public Hashtable(Map<K, V> arg0)
Parameters
Hashtable(int)
public Hashtable(int arg0)
Parameters
Hashtable(int, float)
public Hashtable(int arg0, float arg1)
Parameters
Hashtable(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
public Hashtable(params object[] args)
Parameters
args
object[]
Properties
BridgeClassName
Java class name to be instantiated
public override string BridgeClassName { get; }
Property Value
IsBridgeAbstract
true if the BridgeClassName is an abstract class, i.e. cannot be created an instance
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
true if the BridgeClassName implements Closeable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
true if the BridgeClassName is an interface, i.e. does not have any public constructor
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
true if the BridgeClassName is a static class, i.e. does not have any public constructor
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
Contains(object)
public bool Contains(object arg0)
Parameters
Returns
ContainsKey(object)
public bool ContainsKey(object arg0)
Parameters
Returns
ContainsValue(object)
public bool ContainsValue(object arg0)
Parameters
Returns
EntrySetMethod()
public Set<Map.Entry<K, V>> EntrySetMethod()
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
GetOrDefault(object, V)
public V GetOrDefault(object arg0, V arg1)
Parameters
Returns
- V
V
KeySetMethod()
public Set<K> KeySetMethod()
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
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, 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
Values()
public Collection<V> Values()
Returns
Operators
implicit operator Serializable(Hashtable<K, V>)
Converter from Hashtable<K, V> to Serializable
public static implicit operator Serializable(Hashtable<K, V> t)
Parameters
t
Hashtable<K, V>
Returns
implicit operator Cloneable(Hashtable<K, V>)
Converter from Hashtable<K, V> to Cloneable
public static implicit operator Cloneable(Hashtable<K, V> t)
Parameters
t
Hashtable<K, V>
Returns
implicit operator Hashtable(Hashtable<K, V>)
Converter from Hashtable<K, V> to Hashtable
public static implicit operator Hashtable(Hashtable<K, V> t)
Parameters
t
Hashtable<K, V>
Returns
implicit operator Map<K, V>(Hashtable<K, V>)
Converter from Hashtable<K, V> to Map<K, V>
public static implicit operator Map<K, V>(Hashtable<K, V> t)
Parameters
t
Hashtable<K, V>
Returns
- Map<K, V>