Class WithinRangePredicate<T extends Comparable<T>>

  • Type Parameters:
    T - The (comparable) type to use.
    All Implemented Interfaces:
    Predicate<T>

    public class WithinRangePredicate<T extends Comparable<T>>
    extends Object
    implements Predicate<T>
    This is a predicate implementation which tests whether a provided object is within range of the starting and ending objects.
    • Constructor Detail

      • WithinRangePredicate

        public WithinRangePredicate​(T start,
                                    T end)
        Constructs the predicate.
        Parameters:
        start - The starting object (inclusive).
        end - The ending object (exclusive).