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, IEquatable<IJVMBridgeBase>, IDisposable, IJVMBridgeBaseStatic, IPredicate<byte[], byte[]>, IJVMBridgeBase, IJVMBridgeDefinition, IGenericSerDesFactoryApplier
Type Parameters
TKeyTValue
- Inheritance
-
Predicate<TKey, TValue>PredicateEqualityTest<TKey, TValue>
- Implements
- Inherited Members
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
keyTKeyThe 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
keyTKeyThe key to use in comparison
valueTValueThe value to use in comparison
isKeyCheckbool?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
valueTValueThe value to use in comparison
Properties
AutoInit
Set to false to externally initialize this JVMBridgeListener instance using InitializeListener(IJVMBridgeBase)
public override bool AutoInit { get; }
Property Value
BridgeClassName
Java class name to be instantiated
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