Class In<T extends Comparable<T>>

java.lang.Object
org.dmfs.jems2.predicate.In<T>
All Implemented Interfaces:
Predicate<T>

public final class In<T extends Comparable<T>> extends Object implements Predicate<T>
A Predicate which is satisfied by Comparable elements within a specific closed interval.
  • Constructor Details

    • In

      public In(T lowerBoundary, T upperBoundary)
  • Method Details

    • satisfiedBy

      public boolean satisfiedBy(T element)
      Description copied from interface: Predicate
      Returns whether the given instance satisfies this predicate.
      Specified by:
      satisfiedBy in interface Predicate<T extends Comparable<T>>