public class ConditionalWeakTable_2<TKey extends IJCOBridgeReflected,TValue extends IJCOBridgeReflected> extends NetObjectEnumerable
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Runtime.CompilerServices.ConditionalWeakTable-2
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=11.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
|
static java.lang.String |
assemblyShortName
Assembly name: System.Private.CoreLib
|
static java.lang.String |
className
Qualified class name: System.Runtime.CompilerServices.ConditionalWeakTable`2
|
static JCType |
classType
The type managed from JCOBridge.
|
Null| Constructor and Description |
|---|
ConditionalWeakTable_2()
Initializes a new instance by invoking the .NET constructor.
|
ConditionalWeakTable_2(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Add(TKey key,
TValue value)
Invokes the .NET member Add.
|
void |
AddOrUpdate(TKey key,
TValue value)
Invokes the .NET member AddOrUpdate.
|
static ConditionalWeakTable_2 |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into ConditionalWeakTable_2, a cast assert is made to check if types are compatible. |
void |
Clear()
Invokes the .NET member Clear.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
TValue |
GetOrAdd(TKey key,
Func_2 valueFactory)
Invokes the .NET member GetOrAdd.
|
<TArg extends IJCOBridgeReflected> |
GetOrAdd(TKey key,
Func_3 valueFactory,
TArg factoryArgument)
Invokes the .NET member GetOrAdd.
|
TValue |
GetOrAdd(TKey key,
TValue value)
Invokes the .NET member GetOrAdd.
|
TValue |
GetOrCreateValue(TKey key)
Invokes the .NET member GetOrCreateValue.
|
boolean |
Remove(TKey key)
Invokes the .NET member Remove.
|
boolean |
Remove(TKey key,
JCORefOut<TValue> value)
Invokes the .NET member Remove.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
boolean |
TryAdd(TKey key,
TValue value)
Invokes the .NET member TryAdd.
|
boolean |
TryGetValue(TKey key,
JCORefOut<TValue> value)
Invokes the .NET member TryGetValue.
|
GetEnumerator, iteratorEquals, Equals, GetHashCode, GetType, hashCode, toString, ToStringToIEnumerablepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public ConditionalWeakTable_2()
throws java.lang.Throwable
java.lang.Throwable - if the .NET constructor failspublic ConditionalWeakTable_2(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic void Add(TKey key, TValue value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, ArgumentNullException
key - the argument of type TKeyvalue - the argument of type TValuejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic void AddOrUpdate(TKey key, TValue value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, ArgumentNullException
key - the argument of type TKeyvalue - the argument of type TValuejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static ConditionalWeakTable_2 cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into ConditionalWeakTable_2, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedConditionalWeakTable_2 instancejava.lang.Throwable - in case of error during cast operationpublic void Clear()
throws java.lang.Throwable,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
ArgumentException,
NotSupportedException,
ObjectDisposedException,
RankException,
LockRecursionException,
NullReferenceException,
OutOfMemoryException,
DuplicateWaitObjectException,
AbandonedMutexException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itLockRecursionException - if the .NET member raises itNullReferenceException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itDuplicateWaitObjectException - if the .NET member raises itAbandonedMutexException - if the .NET member raises itpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectEnumerablepublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectEnumerablepublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectEnumerablenull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectEnumerablepublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectEnumerablepublic TValue GetOrAdd(TKey key, Func_2 valueFactory) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
key - the argument of type TKeyvalueFactory - the argument of type Func_2java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic <TArg extends IJCOBridgeReflected> TValue GetOrAdd(TKey key, Func_3 valueFactory, TArg factoryArgument) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
TArg - the type of the generic argument TArgkey - the argument of type TKeyvalueFactory - the argument of type Func_3factoryArgument - the argument of type TArgjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic TValue GetOrAdd(TKey key, TValue value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
key - the argument of type TKeyvalue - the argument of type TValuejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic TValue GetOrCreateValue(TKey key) throws java.lang.Throwable, PlatformNotSupportedException, NullReferenceException, NotSupportedException, IndexOutOfRangeException, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, FormatException, MissingMethodException, TargetInvocationException, LockRecursionException, AbandonedMutexException, SynchronizationLockException
key - the argument of type TKeyjava.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itNullReferenceException - if the .NET member raises itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itFormatException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itLockRecursionException - if the .NET member raises itAbandonedMutexException - if the .NET member raises itSynchronizationLockException - if the .NET member raises itpublic boolean Remove(TKey key) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, ArgumentNullException
key - the argument of type TKeyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic boolean Remove(TKey key, JCORefOut<TValue> value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, ArgumentNullException
key - the argument of type TKeyvalue - the argument of type JCORefOut<TValue>java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class NetObjectEnumerableinstance - the new underlying objectpublic boolean TryAdd(TKey key, TValue value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, ArgumentNullException
key - the argument of type TKeyvalue - the argument of type TValuejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic boolean TryGetValue(TKey key, JCORefOut<TValue> value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, ArgumentNullException
key - the argument of type TKeyvalue - the argument of type JCORefOut<TValue>java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itArgumentNullException - if the .NET member raises it