Package org.jppf.job

Class BetweenIIJobSelector

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

public class BetweenIIJobSelector extends Object
Performs a comparison of type "at least lower_bound and at most 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:
  • Constructor Details

    • BetweenIIJobSelector

      public BetweenIIJobSelector(String lower, String upper)
      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.
    • BetweenIIJobSelector

      public BetweenIIJobSelector(Object key, Comparable<?> lower, Comparable<?> upper)
      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

      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()
    • equals

      public boolean equals(Object obj)