public abstract class AbstractRange<V> extends Object implements Iterable<V>, Comparable<AbstractRange<? extends Object>>
| Constructor and Description |
|---|
AbstractRange() |
| Modifier and Type | Method and Description |
|---|---|
static int |
compare(Object value1,
Object value2) |
int |
compareFromValue(Object value) |
int |
compareTo(AbstractRange<? extends Object> range) |
int |
compareToValue(Object value) |
boolean |
contains(Object value) |
protected AbstractRange<?> |
createNew(Object from,
Object to) |
boolean |
equals(Object other) |
AbstractRange<?> |
expand(AbstractRange<?> range)
Create an expanded range if the this range and the other overlap or touch
|
AbstractRange<?> |
expand(Object value)
Create an expanded range to include the specified value if possible.
|
abstract V |
getFrom() |
abstract V |
getTo() |
int |
hashCode() |
Iterator<V> |
iterator() |
V |
next(Object value) |
V |
previous(Object value) |
long |
size() |
List<V> |
toList() |
String |
toString() |
public int compareFromValue(Object value)
public int compareTo(AbstractRange<? extends Object> range)
compareTo in interface Comparable<AbstractRange<? extends Object>>public int compareToValue(Object value)
public boolean contains(Object value)
protected AbstractRange<?> createNew(Object from, Object to)
public AbstractRange<?> expand(AbstractRange<?> range)
range - public AbstractRange<?> expand(Object value)
value - public abstract V getFrom()
public abstract V getTo()
public long size()
Copyright © 2015 Revolution Systems Inc.. All rights reserved.