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, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..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.StringassemblyFullNameFully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.StringassemblyShortNameAssembly name: mscorlibstatic java.lang.StringclassNameQualified class name: System.Collections.Hashtablestatic JCTypeclassTypeThe 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 voidAdd(NetObject key, NetObject value)static Hashtablecast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoHashtable, a cast assert is made to check if types are compatible.voidClear()NetObjectClone()booleanContains(NetObject key)booleanContainsKey(NetObject key)booleanContainsValue(NetObject value)voidCopyTo(Array array, int arrayIndex)intgetCount()booleangetIsFixedSize()booleangetIsReadOnly()booleangetIsSynchronized()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypeICollectiongetKeys()voidGetObjectData(SerializationInfo info, StreamingContext context)NetObjectgetSyncRoot()ICollectiongetValues()voidOnDeserialization(NetObject sender)voidRemove(NetObject key)voidsetJCOInstance(JCObject instance)static HashtableSynchronized(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: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: mscorlib- 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.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
Hashtable
public Hashtable() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, OutOfMemoryException, FormatException
-
Hashtable
public Hashtable(int capacity) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, OutOfMemoryException, FormatException
-
Hashtable
public Hashtable(int capacity, Single loadFactor) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, OutOfMemoryException, FormatException
-
Hashtable
public Hashtable(int capacity, Single loadFactor, IEqualityComparer equalityComparer) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, OutOfMemoryException, FormatException
-
Hashtable
public Hashtable(int capacity, Single loadFactor, IHashCodeProvider hcp, IComparer comparer) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, OutOfMemoryException, FormatException
-
Hashtable
public Hashtable(int capacity, IEqualityComparer equalityComparer) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, FormatException
-
Hashtable
public Hashtable(int capacity, IHashCodeProvider hcp, IComparer comparer) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, FormatException
-
Hashtable
public Hashtable(IDictionary d) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, FormatException, ArgumentException, InvalidOperationException
- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionFormatExceptionArgumentExceptionInvalidOperationException
-
Hashtable
public Hashtable(IDictionary d, Single loadFactor) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, FormatException, InvalidOperationException
- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionArgumentExceptionFormatExceptionInvalidOperationException
-
Hashtable
public Hashtable(IDictionary d, Single loadFactor, IEqualityComparer equalityComparer) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, FormatException
-
Hashtable
public Hashtable(IDictionary d, Single loadFactor, IHashCodeProvider hcp, IComparer comparer) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, FormatException
-
Hashtable
public Hashtable(IDictionary d, IEqualityComparer equalityComparer) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, FormatException, InvalidOperationException
- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionArgumentExceptionFormatExceptionInvalidOperationException
-
Hashtable
public Hashtable(IDictionary d, IHashCodeProvider hcp, IComparer comparer) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, FormatException, InvalidOperationException
- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionArgumentExceptionFormatExceptionInvalidOperationException
-
Hashtable
public Hashtable(IEqualityComparer equalityComparer) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, FormatException
-
Hashtable
public Hashtable(IHashCodeProvider hcp, IComparer comparer) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, FormatException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classNetObjectEnumerable- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classNetObjectEnumerable- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classNetObjectEnumerable- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classNetObjectEnumerable- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classNetObjectEnumerable
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classNetObjectEnumerable- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static Hashtable cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoHashtable, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
Hashtableinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
Contains
public boolean Contains(NetObject key) throws java.lang.Throwable, ArgumentNullException
- Throws:
java.lang.ThrowableArgumentNullException
-
ContainsKey
public boolean ContainsKey(NetObject key) throws java.lang.Throwable, ArgumentNullException
- Throws:
java.lang.ThrowableArgumentNullException
-
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, ArgumentNullException
- Throws:
java.lang.ThrowableArgumentNullException
-
Clone
public NetObject Clone() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, FormatException, InvalidOperationException
- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionArgumentExceptionFormatExceptionInvalidOperationException
-
Add
public void Add(NetObject key, NetObject value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, OutOfMemoryException, 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, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeException
-
GetObjectData
public void GetObjectData(SerializationInfo info, StreamingContext context) throws java.lang.Throwable, ArgumentNullException, ArgumentException, SerializationException, InvalidOperationException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionSerializationExceptionInvalidOperationException
-
OnDeserialization
public void OnDeserialization(NetObject sender) throws java.lang.Throwable, ArgumentException, ArgumentNullException, InvalidOperationException, SerializationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException
-
Remove
public void Remove(NetObject key) throws java.lang.Throwable, ArgumentNullException
- Throws:
java.lang.ThrowableArgumentNullException
-
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
-
-