|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Field Summary | |
---|---|
Comparable |
from
|
boolean |
reverse
|
int |
size
|
Comparable |
to
|
Constructor Summary | |
ObjectRange(Comparable from, Comparable to)
|
|
ObjectRange(Comparable from, Comparable to, boolean reverse)
|
Method Summary | |
---|---|
int |
compareTo(Comparable first, Comparable second)
|
void |
constructorHelper(Comparable from, Comparable to)
|
boolean |
contains(Object value)
|
boolean |
containsWithinBounds(Object value)
Checks whether a value is between the from and to values of a Range |
Object |
decrement(Object value)
Decrements by one |
boolean |
equals(Object that)
|
boolean |
equals(ObjectRange that)
|
Object |
get(int index)
|
Comparable |
getFrom()
|
Comparable |
getTo()
|
Object |
increment(Object value)
Increments by one |
String |
inspect()
|
boolean |
isReverse()
|
Iterator |
iterator()
|
static Comparable |
normaliseStringType(Comparable operand)
|
int |
size()
|
void |
step(int step, Closure closure)
|
List |
step(int step)
|
List |
subList(int fromIndex, int toIndex)
|
String |
toString()
|
Constructor Detail |
---|
public ObjectRange(Comparable from, Comparable to)
public ObjectRange(Comparable from, Comparable to, boolean reverse)
Method Detail |
---|
int compareTo(Comparable first, Comparable second)
void constructorHelper(Comparable from, Comparable to)
public boolean contains(Object value)
public boolean containsWithinBounds(Object value)
Object decrement(Object value)
public boolean equals(Object that)
public boolean equals(ObjectRange that)
public Object get(int index)
public Comparable getFrom()
public Comparable getTo()
Object increment(Object value)
public String inspect()
public boolean isReverse()
public Iterator iterator()
static Comparable normaliseStringType(Comparable operand)
public int size()
public void step(int step, Closure closure)
public List step(int step)
public List subList(int fromIndex, int toIndex)
public String toString()