Class DefaultIntRange
- All Implemented Interfaces:
ComparableRange<Integer>, IntRange, Range<Integer>
-
Field Summary
Fields inherited from class AbstractRange
endExclusive, startExclusive -
Constructor Summary
ConstructorsConstructorDescriptionDefaultIntRange(int first, int second, boolean firstExclusive, boolean secondExclusive) -
Method Summary
Methods inherited from class AbstractComparableRange
isEmpty, isLowerExclusive, isLowerInclusive, isUpperExclusive, isUpperInclusive, reversedOrder, toStringMethods inherited from class AbstractRange
equals, hashCode, isEndExclusive, isEndInclusive, isStartExclusive, isStartInclusiveMethods inherited from interface ComparableRange
isEmptyMethods inherited from interface IntRange
isLowerExclusive, isLowerInclusive, isUpperExclusive, isUpperInclusive, reversedOrderMethods inherited from interface Range
isEndExclusive, isEndInclusive, isStartExclusive, isStartInclusive
-
Constructor Details
-
DefaultIntRange
public DefaultIntRange(int first, int second, boolean firstExclusive, boolean secondExclusive)
-
-
Method Details
-
start
-
end
-
startValue
public int startValue()- Specified by:
startValuein interfaceIntRange
-
endValue
-
lowerValueInclusive
public int lowerValueInclusive()- Specified by:
lowerValueInclusivein interfaceIntRange
-
lowerValueExclusive
public int lowerValueExclusive()- Specified by:
lowerValueExclusivein interfaceIntRange
-
lowerValue
public int lowerValue()- Specified by:
lowerValuein interfaceIntRange
-
upperValue
public int upperValue()- Specified by:
upperValuein interfaceIntRange
-
upperValueInclusive
public int upperValueInclusive()- Specified by:
upperValueInclusivein interfaceIntRange
-
upperValueExclusive
public int upperValueExclusive()- Specified by:
upperValueExclusivein interfaceIntRange
-
stream
-
size
-
toIntArray
public int[] toIntArray()- Specified by:
toIntArrayin interfaceIntRange
-
contains
-
lowerInclusive
- Specified by:
lowerInclusivein interfaceComparableRange<Integer>
-
lowerExclusive
- Specified by:
lowerExclusivein interfaceComparableRange<Integer>
-
lower
- Specified by:
lowerin interfaceComparableRange<Integer>
-
upper
- Specified by:
upperin interfaceComparableRange<Integer>
-
upperInclusive
- Specified by:
upperInclusivein interfaceComparableRange<Integer>
-
upperExclusive
- Specified by:
upperExclusivein interfaceComparableRange<Integer>
-
contains
- Specified by:
containsin interfaceComparableRange<Integer>
-
intersect
- Specified by:
intersectin interfaceComparableRange<Integer>
-