Package org.jppf.job

Class NotEqualsJobSelector

java.lang.Object
org.jppf.job.NotEqualsJobSelector
All Implemented Interfaces:
Serializable, JobSelector

public class NotEqualsJobSelector extends Object
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:
  • Constructor Details

    • NotEqualsJobSelector

      public NotEqualsJobSelector(Object operand)
      Initialize this selector with a value to compare job names with.
      This constructor is equivalent to calling new NotEqualsJobSelector(null, operand).
      Parameters:
      operand - the operand to compare with.
    • NotEqualsJobSelector

      public NotEqualsJobSelector(Object key, Object operand)
      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

      public boolean accepts(JPPFDistributedJob job)
      Description copied from interface: JobSelector
      Determine whether the specified job is accepted by this selector.
      Parameters:
      job - the job to check.
      Returns:
      true if the job is acepted, false otherwise.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object