Class In<T extends java.lang.Comparable<T>>

  • All Implemented Interfaces:
    Predicate<T>

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

      Constructors 
      Constructor Description
      In​(T lowerBoundary, T upperBoundary)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean satisfiedBy​(T element)
      Returns whether the given instance satisfies this predicate.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • In

        public In​(T lowerBoundary,
                  T upperBoundary)
    • Method Detail

      • 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 java.lang.Comparable<T>>