public class RangeInterval<T> extends Object implements Interval<T>
Constructor and Description |
---|
RangeInterval() |
RangeInterval(T start,
T end) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsPoint(T other) |
boolean |
endInclusive() |
boolean |
equals(Object other) |
T |
getEnd() |
Collection<T> |
getPoints() |
T |
getStart() |
int |
hashCode() |
Interval<T> |
intersect(Interval<T> other) |
boolean |
isEmpty() |
boolean |
isPoints() |
RangeInterval<T> |
setEnd(T end,
boolean inclusive) |
RangeInterval<T> |
setEndInclusive(boolean inclusive) |
RangeInterval<T> |
setStart(T start,
boolean inclusive) |
RangeInterval<T> |
setStartInclusive(boolean inclusive) |
boolean |
startInclusive() |
String |
toString() |
public RangeInterval<T> setStart(T start, boolean inclusive)
public RangeInterval<T> setEnd(T end, boolean inclusive)
public RangeInterval<T> setStartInclusive(boolean inclusive)
public RangeInterval<T> setEndInclusive(boolean inclusive)
public boolean startInclusive()
startInclusive
in interface Interval<T>
public boolean endInclusive()
endInclusive
in interface Interval<T>
public Collection<T> getPoints()
public boolean containsPoint(T other)
Copyright © 2012–2021. All rights reserved.