public class DefaultIntRange extends AbstractComparableRange<Integer> implements IntRange
endExclusive, startExclusive| Constructor and Description |
|---|
DefaultIntRange(int first,
int second,
boolean firstExclusive,
boolean secondExclusive) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(int value) |
boolean |
contains(Integer integer) |
Integer |
end() |
int |
endValue() |
ComparableRange<Integer> |
intersect(ComparableRange<Integer> other) |
Integer |
lower() |
Integer |
lowerExclusive() |
Integer |
lowerInclusive() |
int |
lowerValue() |
int |
lowerValueExclusive() |
int |
lowerValueInclusive() |
int |
size() |
Integer |
start() |
int |
startValue() |
IntStream |
stream() |
int[] |
toIntArray() |
Integer |
upper() |
Integer |
upperExclusive() |
Integer |
upperInclusive() |
int |
upperValue() |
int |
upperValueExclusive() |
int |
upperValueInclusive() |
isEmpty, isLowerExclusive, isLowerInclusive, isUpperExclusive, isUpperInclusive, reversedOrder, toStringequals, hashCode, isEndExclusive, isEndInclusive, isStartExclusive, isStartInclusiveclone, finalize, getClass, notify, notifyAll, wait, wait, waitisLowerExclusive, isLowerInclusive, isUpperExclusive, isUpperInclusive, reversedOrderisEmptyisEndExclusive, isEndInclusive, isStartExclusive, isStartInclusivepublic DefaultIntRange(int first,
int second,
boolean firstExclusive,
boolean secondExclusive)
public int startValue()
startValue in interface IntRangepublic int lowerValueInclusive()
lowerValueInclusive in interface IntRangepublic int lowerValueExclusive()
lowerValueExclusive in interface IntRangepublic int lowerValue()
lowerValue in interface IntRangepublic int upperValue()
upperValue in interface IntRangepublic int upperValueInclusive()
upperValueInclusive in interface IntRangepublic int upperValueExclusive()
upperValueExclusive in interface IntRangepublic int[] toIntArray()
toIntArray in interface IntRangepublic Integer lowerInclusive()
lowerInclusive in interface ComparableRange<Integer>public Integer lowerExclusive()
lowerExclusive in interface ComparableRange<Integer>public Integer lower()
lower in interface ComparableRange<Integer>public Integer upper()
upper in interface ComparableRange<Integer>public Integer upperInclusive()
upperInclusive in interface ComparableRange<Integer>public Integer upperExclusive()
upperExclusive in interface ComparableRange<Integer>public boolean contains(Integer integer)
contains in interface ComparableRange<Integer>public ComparableRange<Integer> intersect(ComparableRange<Integer> other)
intersect in interface ComparableRange<Integer>Copyright © 2021 vpc open source initiative. All rights reserved.