- All Implemented Interfaces:
ComparableRange<Integer>,IntRange,Range<Integer>
-
Field Summary
Fields inherited from class net.hl.lang.defaults.AbstractRange
endExclusive, startExclusive -
Constructor Summary
ConstructorsConstructorDescriptionDefaultIntRange(int first, int second, boolean firstExclusive, boolean secondExclusive) -
Method Summary
Methods inherited from class net.hl.lang.defaults.AbstractComparableRange
isEmpty, isLowerExclusive, isLowerInclusive, isUpperExclusive, isUpperInclusive, reversedOrder, toStringMethods inherited from class net.hl.lang.defaults.AbstractRange
equals, hashCode, isEndExclusive, isEndInclusive, isStartExclusive, isStartInclusiveMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.hl.lang.ComparableRange
isEmptyMethods inherited from interface net.hl.lang.IntRange
isLowerExclusive, isLowerInclusive, isUpperExclusive, isUpperInclusive, reversedOrderMethods inherited from interface net.hl.lang.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
public int 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
public int size() -
toIntArray
public int[] toIntArray()- Specified by:
toIntArrayin interfaceIntRange
-
contains
public boolean contains(int value) -
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>
-