public class NotEqualPredicate extends AbstractPredicate implements NegatablePredicate
| Constructor and Description |
|---|
NotEqualPredicate() |
NotEqualPredicate(String attribute,
Comparable value) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(Map.Entry mapEntry)
Applies this predicate to the given map entry.
|
protected boolean |
applyForSingleAttributeValue(Comparable attributeValue) |
boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
int |
getClassId()
Returns type identifier for this class.
|
int |
hashCode() |
Predicate |
negate()
Create logical negation of itself.
|
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
convert, getFactoryIdpublic NotEqualPredicate()
public NotEqualPredicate(String attribute, Comparable value)
public boolean apply(Map.Entry mapEntry)
PredicateImplementations must be thread-safe, since this method may be called by multiple threads concurrently.
apply in interface Predicateapply in class AbstractPredicatemapEntry - the map entry to apply this predicate to.true if the given map entry matches this predicate,
false otherwise.protected boolean applyForSingleAttributeValue(Comparable attributeValue)
applyForSingleAttributeValue in class AbstractPredicatepublic void writeData(ObjectDataOutput out) throws IOException
DataSerializablewriteData in interface DataSerializablewriteData in class AbstractPredicateout - outputIOException - if an I/O error occurs. In particular,
an IOException may be thrown if the
output stream has been closed.public void readData(ObjectDataInput in) throws IOException
DataSerializablereadData in interface DataSerializablereadData in class AbstractPredicatein - inputIOException - if an I/O error occurs. In particular,
an IOException may be thrown if the
input stream has been closed.public boolean equals(Object o)
equals in class AbstractPredicatepublic boolean canEqual(Object other)
canEqual in class AbstractPredicatepublic int hashCode()
hashCode in class AbstractPredicatepublic Predicate negate()
NegatablePredicatenegate in interface NegatablePredicatepublic int getClassId()
IdentifiedDataSerializablegetClassId in interface IdentifiedDataSerializableCopyright © 2019 Hazelcast, Inc.. All rights reserved.