| Modifier and Type | Field and Description |
|---|---|
| protected T | at
The value at which the range originates (may be |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | add(T
element to be appended to this list o)Overrides java. Implements java. UnsupportedOperationException for an empty range.
|
| public boolean | addAll(int
index at which to insert the first element from the
specified collection index, Collection<? extends T> collection containing elements to be added to this list c)Overrides java. Implements java. UnsupportedOperationException for an empty range.
|
| public boolean | addAll(Collection<? extends T>
collection containing elements to be added to this list c)Overrides java. Implements java. UnsupportedOperationException for an empty range.
|
| public boolean | Returns: falsethe object to check against the boundaries of the range o)Implements groovy. |
| public T | get(int
index of the element to return index)Implements abstract java. Implements java. IndexOutOfBoundsException for an empty range.
|
| public T | |
| public T | |
| public String | |
| public boolean | |
| public boolean | remove(Object
element to be removed from this list, if present o)Overrides java. Implements java. UnsupportedOperationException for an empty range.
|
| public T | remove(int
the index of the element to be removed index)Overrides java. Implements java. UnsupportedOperationException for an empty range.
|
| public boolean | removeAll(Collection<?>
collection containing elements to be removed from this list c)Overrides java. Implements java. UnsupportedOperationException for an empty range.
|
| public boolean | retainAll(Collection<?>
collection containing elements to be retained in this list c)Overrides java. Implements java. UnsupportedOperationException for an empty range.
|
| public T | set(int
index of the element to replace index, T element to be stored at the specified position element)Overrides java. Implements java. UnsupportedOperationException for an empty range.
|
| public int | Returns: 0Implements abstract java. Implements java. |
| public void | step(int
the amount by which to step. If negative, steps through the range backwards. step, Closure<V> the closure)Closure to callImplements groovy. |
| public List | step(int
the amount by which to step. If negative, steps through the range backwards. step)Implements groovy. |
| public String | toString()
Overrides java. |
| at | back to summary |
|---|---|
| protected T at The value at which the range originates (may be | |
| EmptyRange | back to summary |
|---|---|
| public EmptyRange(T at) Creates a new
| |
| add | back to summary |
|---|---|
| public boolean add(T o) Overrides java. Implements java. Always throws
| |
| addAll | back to summary |
|---|---|
| public boolean addAll(int index, Collection<? extends T> c) Overrides java. Implements java. Always throws
| |
| addAll | back to summary |
|---|---|
| public boolean addAll(Collection<? extends T> c) Overrides java. Implements java. Always throws
| |
| containsWithinBounds | back to summary |
|---|---|
| public boolean containsWithinBounds(Object o) Implements groovy. Never true for an empty range.
| |
| get | back to summary |
|---|---|
| public T get(int index) Implements abstract java. Implements java. Always throws
| |
| getFrom | back to summary |
|---|---|
| public T getFrom() Implements groovy. Doc from groovy. The lower value in the range.
| |
| getTo | back to summary |
|---|---|
| public T getTo() Implements groovy. Doc from groovy. The upper value in the range.
| |
| inspect | back to summary |
|---|---|
| public String inspect() Implements groovy. | |
| isReverse | back to summary |
|---|---|
| public boolean isReverse() Implements groovy. Never true for an empty range.
| |
| remove | back to summary |
|---|---|
| public boolean remove(Object o) Overrides java. Implements java. Always throws
| |
| remove | back to summary |
|---|---|
| public T remove(int index) Overrides java. Implements java. Always throws
| |
| removeAll | back to summary |
|---|---|
| public boolean removeAll(Collection<?> c) Overrides java. Implements java. Always throws
| |
| retainAll | back to summary |
|---|---|
| public boolean retainAll(Collection<?> c) Overrides java. Implements java. Always throws
| |
| set | back to summary |
|---|---|
| public T set(int index, T element) Overrides java. Implements java. Always throws
| |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Implements java. Always 0 for an empty range.
| |
| step | back to summary |
|---|---|
| public void step(int step, Closure<V> closure) Implements groovy. Always does nothing for an empty range.
| |
| step | back to summary |
|---|---|
| public List Implements groovy. Always returns an empty list for an empty range.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of this collection. The string
representation consists of a list of the collection's elements in the
order they are returned by its iterator, enclosed in square brackets
(
| |