Class Predicates.EqualToPredicate<T>
- java.lang.Object
-
- com.oracle.coherence.concurrent.executor.function.Predicates.EqualToPredicate<T>
-
- Type Parameters:
T- the type of value
- All Implemented Interfaces:
PortablePredicate<T>,PortableObject,Remote.Predicate<T>,Serializable,Predicate<T>
- Enclosing class:
- Predicates
public static class Predicates.EqualToPredicate<T> extends Object implements PortablePredicate<T>
ARemote.Predicateto compare a value usingObject.equals(Object).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EqualToPredicate()Constructs aPredicates.EqualToPredicate(required for serialization).EqualToPredicate(T value)Constructs anPredicates.EqualToPredicate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidreadExternal(PofReader in)Restore the contents of a user type instance by reading its state using the specified PofReader object.booleantest(T t)voidwriteExternal(PofWriter out)Save the contents of a POF user type instance by writing its state using the specified PofWriter object.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.tangosol.util.function.Remote.Predicate
and, negate, or
-
-
-
-
Field Detail
-
m_value
protected T m_value
The value to compare.
-
-
Constructor Detail
-
EqualToPredicate
public EqualToPredicate()
Constructs aPredicates.EqualToPredicate(required for serialization).
-
EqualToPredicate
public EqualToPredicate(T value)
Constructs anPredicates.EqualToPredicate.- Parameters:
value- the value being compared
-
-
Method Detail
-
readExternal
public void readExternal(PofReader in) throws IOException
Description copied from interface:PortableObjectRestore the contents of a user type instance by reading its state using the specified PofReader object.- Specified by:
readExternalin interfacePortableObject- Specified by:
readExternalin interfacePortablePredicate<T>- Parameters:
in- the PofReader from which to read the object's state- Throws:
IOException- if an I/O error occurs
-
writeExternal
public void writeExternal(PofWriter out) throws IOException
Description copied from interface:PortableObjectSave the contents of a POF user type instance by writing its state using the specified PofWriter object.- Specified by:
writeExternalin interfacePortableObject- Specified by:
writeExternalin interfacePortablePredicate<T>- Parameters:
out- the PofWriter to which to write the object's state- Throws:
IOException- if an I/O error occurs
-
-