public class BetweenSpacePredicate extends AbstractSpacePredicate
Constructor and Description |
---|
BetweenSpacePredicate()
Default constructor for Externalizable.
|
BetweenSpacePredicate(Comparable<?> low,
Comparable<?> high)
Creates a Between predicate.
|
BetweenSpacePredicate(Comparable<?> low,
Comparable<?> high,
boolean lowInclusive,
boolean highInclusive)
Creates a Between predicate.
|
BetweenSpacePredicate(Comparable<?> low,
Comparable<?> high,
Comparator<?> comparator)
Creates a Between predicate.
|
BetweenSpacePredicate(Comparable<?> low,
Comparable<?> high,
Comparator<?> comparator,
boolean lowInclusive,
boolean highInclusive)
Creates a Between predicate.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
boolean |
execute(Object target)
Executes this predicate on the specified target.
|
ComparableScalarSpacePredicate |
getHighPredicate()
Gets the predicate which tests the high limit of the between range.
|
ComparableScalarSpacePredicate |
getLowPredicate()
Gets the predicate which tests the low limit of the between range.
|
protected void |
readExternalImpl(ObjectInput in) |
protected void |
writeExternalImpl(ObjectOutput out) |
preparePredicate, requiresCacheManagerForExecution, setCacheManagerForExecution
readExternal, writeExternal
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
readExternal, writeExternal
public BetweenSpacePredicate()
public BetweenSpacePredicate(Comparable<?> low, Comparable<?> high)
low
- Low limit for expected value.high
- High limit for expected value.public BetweenSpacePredicate(Comparable<?> low, Comparable<?> high, Comparator<?> comparator)
low
- Low limit for expected value.high
- High limit for expected value.comparator
- Comparator to use for comparison.public BetweenSpacePredicate(Comparable<?> low, Comparable<?> high, boolean lowInclusive, boolean highInclusive)
low
- Low limit for expected value.high
- High limit for expected value.lowInclusive
- Determines if low limit comparison is inclusive.highInclusive
- Determines if high limit comparison is inclusive.public BetweenSpacePredicate(Comparable<?> low, Comparable<?> high, Comparator<?> comparator, boolean lowInclusive, boolean highInclusive)
low
- Low limit for expected value.high
- High limit for expected value.comparator
- Comparator to use for comparison.lowInclusive
- Determines if low limit comparison is inclusive.highInclusive
- Determines if high limit comparison is inclusive.public ComparableScalarSpacePredicate getLowPredicate()
public ComparableScalarSpacePredicate getHighPredicate()
public boolean execute(Object target)
ISpacePredicate
execute
in interface ISpacePredicate
execute
in class AbstractSpacePredicate
protected void readExternalImpl(ObjectInput in) throws IOException, ClassNotFoundException
readExternalImpl
in class AbstractExternalizable
IOException
ClassNotFoundException
protected void writeExternalImpl(ObjectOutput out) throws IOException
writeExternalImpl
in class AbstractExternalizable
IOException
Copyright © GigaSpaces.