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, getFactoryId
public NotEqualPredicate()
public NotEqualPredicate(String attribute, Comparable value)
public boolean apply(Map.Entry mapEntry)
Predicate
Implementations must be thread-safe, since this method may be called by multiple threads concurrently.
apply
in interface Predicate
apply
in class AbstractPredicate
mapEntry
- 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 AbstractPredicate
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
writeData
in class AbstractPredicate
out
- 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
DataSerializable
readData
in interface DataSerializable
readData
in class AbstractPredicate
in
- 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 AbstractPredicate
public boolean canEqual(Object other)
canEqual
in class AbstractPredicate
public int hashCode()
hashCode
in class AbstractPredicate
public Predicate negate()
NegatablePredicate
negate
in interface NegatablePredicate
public int getClassId()
IdentifiedDataSerializable
getClassId
in interface IdentifiedDataSerializable
Copyright © 2019 Hazelcast, Inc.. All rights reserved.