N - The Number class.public class NumberRange<N extends java.lang.Number> extends Range<N>
Range for Numbers.
We only offer specializations for Integer, Long, and Double (like Java Streams).
| Constructor and Description |
|---|
NumberRange(N number1,
N number2,
java.util.Comparator<N> comp)
Creates an instance.
|
between, between, contains, containsRange, elementCompareTo, equals, fit, getComparator, getMaximum, getMinimum, hashCode, intersectionWith, is, is, isAfter, isAfterRange, isBefore, isBeforeRange, isEndedBy, isNaturalOrdering, isOverlappedBy, isStartedBy, of, of, toString, toStringpublic NumberRange(N number1, N number2, java.util.Comparator<N> comp)
number1 - the first element, not nullnumber2 - the second element, not nullcomp - the comparator to be used, null for natural orderingjava.lang.NullPointerException - when element1 is null.java.lang.NullPointerException - when element2 is null.Copyright © 2010 - 2023 Adobe. All Rights Reserved