Package org.jppf.job
Class MoreThanJobSelector
java.lang.Object
org.jppf.job.MoreThanJobSelector
- All Implemented Interfaces:
Serializable,JobSelector
Performs a "more than" strict comparison between a job metadata value or a job name and an other comparable value.
- Since:
- 6.2
- Author:
- Laurent Cohen
- See Also:
-
Field Summary
Fields inherited from interface org.jppf.job.JobSelector
ALL_JOBS -
Constructor Summary
ConstructorsConstructorDescriptionMoreThanJobSelector(Object key, Comparable<?> operand) Initialize this selector with a job metadata key and a value to compare with.MoreThanJobSelector(String operand) Initialize this selector with a value to compare job names with. -
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
-
MoreThanJobSelector
Initialize this selector with a value to compare job names with.- Parameters:
operand- the operand to compare with.
-
MoreThanJobSelector
Initialize this selector with a job metadata key and a value to compare with.- Parameters:
key- the metadata key of the value to compare with.operand- the operand 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
-