public abstract class AbstractRange<C extends Rangeable<C,R>,R extends Range<C,R>> extends Object implements Range<C,R>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractRange.AbstractRangeBuilder<C extends Rangeable<C,R>,R extends AbstractRange<C,R>> |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractRange(C start,
C end) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(C value) |
boolean |
contains(R other) |
C |
end() |
boolean |
equals(Object o) |
List<R> |
exclude(R other) |
int |
hashCode() |
R |
intersection(R other) |
boolean |
isConsecutive(R other) |
boolean |
isEmpty() |
boolean |
isSameRange(R other) |
Iterator<C> |
iterator() |
R |
merge(R other) |
protected abstract R |
newInstance(C start,
C end) |
boolean |
overlaps(R other) |
C |
start() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic C start()
public C end()
public boolean contains(R other)
public boolean contains(C value)
public boolean overlaps(R other)
public boolean isConsecutive(R other)
public boolean isEmpty()
public boolean isSameRange(R other)
Copyright © 2016. All rights reserved.