Located in compilation unit of org.
| Modifier and Type | Field and Description |
|---|---|
| private final FingerTree | |
| private static final ToSemigroup |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static <E> List | |
| private ListConcatenation | |
| public E | get(int index)
Implements abstract java. Implements java. Returns the element at the specified position in this list. |
| public int | size()
Implements abstract java. Implements java. Returns the number of elements in this list. |
| public List | subList(int from, int to)
Overrides java. Implements java. Returns a view of the portion of this list between the specified
|
| private ListConcatenation |
| ft | back to summary |
|---|---|
| private final FingerTree<List<E>, Integer> ft | |
| LIST_SIZE_MONOID | back to summary |
|---|---|
| private static final ToSemigroup<List<?>, Integer> LIST_SIZE_MONOID | |
| ListConcatenation | back to summary |
|---|---|
| pack-priv ListConcatenation(FingerTree<List<E>, Integer> ft) | |
| create | back to summary |
|---|---|
| pack-priv static <E> List | |
| drop | back to summary |
|---|---|
| private ListConcatenation | |
| get | back to summary |
|---|---|
| public E get(int index) Implements abstract java. Implements java. Doc from java. Returns the element at the specified position in this list.
| |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Implements java. Doc from java. Returns the number of elements in this list. If this list contains
more than
| |
| subList | back to summary |
|---|---|
| public List Overrides java. Implements java. Doc from java. Returns a view of the portion of this list between the specified
This method eliminates the need for explicit range operations (of the sort that commonly exist for arrays). Any operation that expects a list can be used as a range operation by passing a subList view instead of a whole list. For example, the following idiom removes a range of elements from a list:
Similar idioms may be constructed for indexOf and
lastIndexOf, and all of the algorithms in the
Collections class can be applied to a subList.The semantics of the list returned by this method become undefined if the backing list (i.e., this list) is structurally modified in any way other than via the returned list. (Structural modifications are those that change the size of this list, or otherwise perturb it in such a fashion that iterations in progress may yield incorrect results.)
| |
| trim | back to summary |
|---|---|
| private ListConcatenation | |