Package discord4j.store.api.util
Class WithinRangePredicate<T extends Comparable<T>>
- java.lang.Object
-
- discord4j.store.api.util.WithinRangePredicate<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 Summary
Constructors Constructor Description WithinRangePredicate(T start, T end)Constructs the predicate.
-