Package org.jppf.job
Class BetweenIEJobSelector
java.lang.Object
org.jppf.job.BetweenIEJobSelector
- All Implemented Interfaces:
Serializable,JobSelector
Performs a comparison of type "at least lower_bound and strictly less than upper_bound" between a
Comparable metadata value or a job name
and Comparable lower and upper bounds.- Since:
- 6.2
- Author:
- Laurent Cohen
- See Also:
-
Field Summary
Fields inherited from interface org.jppf.job.JobSelector
ALL_JOBS -
Constructor Summary
ConstructorsConstructorDescriptionBetweenIEJobSelector(Object key, Comparable<?> lower, Comparable<?> upper) Initialize this job selector with a metadata key and lower and upper bounds.BetweenIEJobSelector(String lower, String upper) Initialize this job selector with a metadata key and lower and upper bounds. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermine whether the specified job is accepted by this selector.booleaninthashCode()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jppf.job.JobSelector
and, negate, or, xor
-
Constructor Details
-
BetweenIEJobSelector
Initialize this job selector with a metadata key and lower and upper bounds.- Parameters:
lower- the lower bound to compare job names with.upper- the upper bound to compare job names with.
-
BetweenIEJobSelector
Initialize this job selector with a metadata key and lower and upper bounds.- Parameters:
key- the metadata key of the value to compare with.lower- the lower bound to compare with.upper- the upper bound to compare with.
-
-
Method Details
-
accepts
Description copied from interface:JobSelectorDetermine whether the specified job is accepted by this selector.- Parameters:
job- the job to check.- Returns:
trueif the job is acepted,falseotherwise.
-
hashCode
public int hashCode() -
equals
-