Package org.jppf.job
Class NotEqualsJobSelector
java.lang.Object
org.jppf.job.NotEqualsJobSelector
- All Implemented Interfaces:
Serializable,JobSelector
Performs a "not equal" 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
ConstructorsConstructorDescriptionNotEqualsJobSelector(Object operand) Initialize this selector with a value to compare job names with.NotEqualsJobSelector(Object key, Object operand) Initialize this selector with a job metadata key and a value to compare 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
-
NotEqualsJobSelector
Initialize this selector with a value to compare job names with.
This constructor is equivalent to callingnew NotEqualsJobSelector(null, operand).- Parameters:
operand- the operand to compare with.
-
NotEqualsJobSelector
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
-