Class PredicateEqualityTest<TKey, TValue>
KNet extension of Predicate<K, V> to execute Test(K, V) directly in the JVM
public class PredicateEqualityTest<TKey, TValue> : Predicate<TKey, TValue>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IPredicate<byte[], byte[]>, IJVMBridgeBase, IJVMBridgeDefinition, IGenericSerDesFactoryApplier
Type Parameters
TKey
TValue
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<JVMBridgeListener>JVMBridgeListenerPredicate<TKey, TValue>PredicateEqualityTest<TKey, TValue>
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Inherited Members
-
JVMBridgeListener.Dispose()JVMBridgeListener.IsBridgeStaticJVMBridgeListener.IsBridgeCloseableJVMBridgeListener.IsBridgeListenerJVMBridgeBase<JVMBridgeListener>.IsAssignableFrom(IJavaType)JVMBridgeBase<JVMBridgeListener>.IsAssignableFrom<T>()JVMBridgeBase<JVMBridgeListener>.Execute<T>(params T[])JVMBridgeBase<JVMBridgeListener>.DynBridgeClazzJVMBridgeBase<JVMBridgeListener>.BridgeClazzJVMBridgeBase.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.CastDirect<TNewClass>()JVMBridgeBase.ToString()JVMBridgeBase.GetHashCode()JVMBridgeBase.Notify()JVMBridgeBase.NotifyAll()JVMBridgeBase.Wait()JVMBridgeBase.IExecuteWithSignature<TNewClass, TReturn, TConverter>(string, string, params object[])JVMBridgeBase.DynBridgeInstanceJVMBridgeBase.BridgeInstanceJVMBridgeBase.IsBridgeInterfaceJVMBridgeBase.IsBridgeAbstract
Constructors
PredicateEqualityTest()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
public PredicateEqualityTest()
PredicateEqualityTest(TKey)
Initialize a new PredicateEqualityTest<TKey, TValue> only for key comparison
public PredicateEqualityTest(TKey key)
Parameters
key
TKeyThe key to use in comparison
PredicateEqualityTest(TKey, TValue, bool?)
Initialize a new PredicateEqualityTest<TKey, TValue> for both key and value comparison
public PredicateEqualityTest(TKey key, TValue value, bool? isKeyCheck = null)
Parameters
key
TKeyThe key to use in comparison
value
TValueThe value to use in comparison
isKeyCheck
bool?Set to true to check the Key, set to false to check the Value or leave undefined to check both Key and Value
Remarks
Both key
and value
shall be equal to input parameters of Test(K, V) to return true
PredicateEqualityTest(TValue)
Initialize a new PredicateEqualityTest<TKey, TValue> only for value comparison
public PredicateEqualityTest(TValue value)
Parameters
value
TValueThe value to use in comparison
Properties
AutoInit
Set to false to externally initialize this MASES.JCOBridge.C2JBridge.JVMBridgeListener instance using MASES.JCOBridge.C2JBridge.JVMInterop.IJVMWrapperManagement.InitializeListener(MASES.JCOBridge.C2JBridge.IJVMBridgeBase)
public override bool AutoInit { get; }
Property Value
BridgeClassName
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
Property Value
IsKeyCheck
Set to true to check the Key, set to false to check the Value or leave undefined to check both Key and Value
public bool? IsKeyCheck { get; set; }
Property Value
- bool?
Key
The TKey
to check
public TKey Key { get; set; }
Property Value
- TKey
Value
The TValue
to check
public TValue Value { get; set; }
Property Value
- TValue