Package system.collections
Class Hashtable
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- org.mases.jcobridge.netreflection.NetObjectEnumerable
-
- system.collections.Hashtable
-
- All Implemented Interfaces:
java.lang.Iterable<NetObject>
,IEnumerable
,IJCOBridgeReflected
- Direct Known Subclasses:
PrintPropertyDictionary
,PropertyCollection
,SettingsAttributeDictionary
,SettingsContext
public class Hashtable extends NetObjectEnumerable
The base .NET class managing System.Collections.Hashtable, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Hashtable
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798estatic java.lang.String
assemblyShortName
Assembly name: System.Private.CoreLibstatic java.lang.String
className
Qualified class name: System.Collections.Hashtablestatic JCType
classType
The type managed from JCOBridge.-
Fields inherited from class org.mases.jcobridge.netreflection.NetObjectEnumerable
Null
-
-
Constructor Summary
Constructors Constructor Description Hashtable()
Hashtable(int capacity)
Hashtable(int capacity, IEqualityComparer equalityComparer)
Hashtable(int capacity, IHashCodeProvider hcp, IComparer comparer)
Hashtable(int capacity, Single loadFactor)
Hashtable(int capacity, Single loadFactor, IEqualityComparer equalityComparer)
Hashtable(int capacity, Single loadFactor, IHashCodeProvider hcp, IComparer comparer)
Hashtable(java.lang.Object instance)
Internal constructor.Hashtable(IDictionary d)
Hashtable(IDictionary d, IEqualityComparer equalityComparer)
Hashtable(IDictionary d, IHashCodeProvider hcp, IComparer comparer)
Hashtable(IDictionary d, Single loadFactor)
Hashtable(IDictionary d, Single loadFactor, IEqualityComparer equalityComparer)
Hashtable(IDictionary d, Single loadFactor, IHashCodeProvider hcp, IComparer comparer)
Hashtable(IEqualityComparer equalityComparer)
Hashtable(IHashCodeProvider hcp, IComparer comparer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
Add(NetObject key, NetObject value)
static Hashtable
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoHashtable
, a cast assert is made to check if types are compatible.void
Clear()
NetObject
Clone()
boolean
Contains(NetObject key)
boolean
ContainsKey(NetObject key)
boolean
ContainsValue(NetObject value)
void
CopyTo(Array array, int arrayIndex)
int
getCount()
boolean
getIsFixedSize()
boolean
getIsReadOnly()
boolean
getIsSynchronized()
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class TypeICollection
getKeys()
void
GetObjectData(SerializationInfo info, StreamingContext context)
NetObject
getSyncRoot()
ICollection
getValues()
void
OnDeserialization(NetObject sender)
void
Remove(NetObject key)
void
setJCOInstance(JCObject instance)
static Hashtable
Synchronized(Hashtable table)
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObjectEnumerable
GetEnumerator, iterator
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Private.CoreLib- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Collections.Hashtable- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Hashtable
public Hashtable(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
Hashtable
public Hashtable() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException
-
Hashtable
public Hashtable(int capacity, Single loadFactor, IEqualityComparer equalityComparer) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException
-
Hashtable
public Hashtable(int capacity, Single loadFactor, IHashCodeProvider hcp, IComparer comparer) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException
-
Hashtable
public Hashtable(int capacity, Single loadFactor) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
Hashtable
public Hashtable(int capacity, IEqualityComparer equalityComparer) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, FormatException
-
Hashtable
public Hashtable(int capacity, IHashCodeProvider hcp, IComparer comparer) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, FormatException
-
Hashtable
public Hashtable(int capacity) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException
-
Hashtable
public Hashtable(IDictionary d, Single loadFactor, IEqualityComparer equalityComparer) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, FormatException
-
Hashtable
public Hashtable(IDictionary d, Single loadFactor, IHashCodeProvider hcp, IComparer comparer) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, FormatException
-
Hashtable
public Hashtable(IDictionary d, Single loadFactor) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, IndexOutOfRangeException
-
Hashtable
public Hashtable(IDictionary d, IEqualityComparer equalityComparer) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, IndexOutOfRangeException
-
Hashtable
public Hashtable(IDictionary d, IHashCodeProvider hcp, IComparer comparer) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, IndexOutOfRangeException
-
Hashtable
public Hashtable(IDictionary d) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, PlatformNotSupportedException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentException
InvalidOperationException
PlatformNotSupportedException
IndexOutOfRangeException
-
Hashtable
public Hashtable(IEqualityComparer equalityComparer) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, FormatException
-
Hashtable
public Hashtable(IHashCodeProvider hcp, IComparer comparer) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, FormatException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classNetObjectEnumerable
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classNetObjectEnumerable
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classNetObjectEnumerable
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classNetObjectEnumerable
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObjectEnumerable
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObjectEnumerable
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static Hashtable cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoHashtable
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
Hashtable
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
Contains
public boolean Contains(NetObject key) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
-
ContainsKey
public boolean ContainsKey(NetObject key) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
ContainsValue
public boolean ContainsValue(NetObject value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Synchronized
public static Hashtable Synchronized(Hashtable table) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
Clone
public NetObject Clone() throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, IndexOutOfRangeException
-
Add
public void Add(NetObject key, NetObject value) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException
-
Clear
public void Clear() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
CopyTo
public void CopyTo(Array array, int arrayIndex) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException
-
GetObjectData
public void GetObjectData(SerializationInfo info, StreamingContext context) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, SerializationException
-
OnDeserialization
public void OnDeserialization(NetObject sender) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, SerializationException, IndexOutOfRangeException, FormatException
-
Remove
public void Remove(NetObject key) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
getIsFixedSize
public boolean getIsFixedSize() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsReadOnly
public boolean getIsReadOnly() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsSynchronized
public boolean getIsSynchronized() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getCount
public int getCount() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getKeys
public ICollection getKeys() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getValues
public ICollection getValues() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getSyncRoot
public NetObject getSyncRoot() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-