Class LessEqualsSpacePredicate
java.lang.Object
com.gigaspaces.internal.serialization.AbstractExternalizable
com.gigaspaces.internal.query.predicate.AbstractSpacePredicate
com.gigaspaces.internal.query.predicate.comparison.ScalarSpacePredicate
com.gigaspaces.internal.query.predicate.comparison.ComparableScalarSpacePredicate
com.gigaspaces.internal.query.predicate.comparison.LessEqualsSpacePredicate
- All Implemented Interfaces:
ISpacePredicate, SmartExternalizable, Externalizable, Serializable
An implementation of less than or equals to comparison: This predicate returns true if and only
if the predicate's argument is less than or equals to the expected value. Comparison is performed
using the compareTo method.
- Since:
- 7.1
- Author:
- Niv ingberg
- See Also:
-
Field Summary
Fields inherited from class ScalarSpacePredicate
_convertedValueWrapper, _expectedValue, functionCallDescription -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for Externalizable.LessEqualsSpacePredicate(Comparable<?> expectedValue) Creates a less-equals predicate using the specified expected value.LessEqualsSpacePredicate(Comparable<?> expectedValue, Comparator<?> comparator) Creates a less-equals predicate using the specified expected value and comparator. -
Method Summary
Methods inherited from class ComparableScalarSpacePredicate
equals, getComparator, match, readExternalImpl, writeExternalImplMethods inherited from class ScalarSpacePredicate
execute, getExpectedValue, getPreparedExpectedValue, toStringMethods inherited from class AbstractSpacePredicate
preparePredicate, requiresCacheManagerForExecution, setCacheManagerForExecutionMethods inherited from class AbstractExternalizable
readExternal, writeExternalMethods inherited from class Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Externalizable
readExternal, writeExternalMethods inherited from interface SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
LessEqualsSpacePredicate
public LessEqualsSpacePredicate()Default constructor for Externalizable. -
LessEqualsSpacePredicate
Creates a less-equals predicate using the specified expected value.- Parameters:
expectedValue- Expected value.
-
LessEqualsSpacePredicate
Creates a less-equals predicate using the specified expected value and comparator.- Parameters:
expectedValue- Expected value.comparator- Comparator to use while comparing.
-
-
Method Details
-
compare
protected boolean compare(int compareResult) - Specified by:
comparein classComparableScalarSpacePredicate
-
getOperatorName
- Specified by:
getOperatorNamein classScalarSpacePredicate
-