| Modifier and Type | Class and Description |
|---|---|
static class |
FastFullList.FastFullListBuilder<F> |
| Constructor and Description |
|---|
FastFullList(int capacity,
E blankElement) |
| Modifier and Type | Method and Description |
|---|---|
static <F> FastFullList.FastFullListBuilder<F> |
builder() |
E |
get(int index) |
Iterator<E> |
iterator() |
static <F> FastFullList<F> |
newList(F... elements) |
static <F> FastFullList<F> |
newListWithCapacity(int capacity) |
void |
set(int index,
E element)
Set an element
|
List<E> |
subList(int fromIndex,
int toIndex) |
int |
usedSize() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic FastFullList(int capacity,
E blankElement)
capacity - the capacity, ≥ 10blankElement - the value of cells that were not set.public static <F> FastFullList<F> newListWithCapacity(int capacity)
F - the type of the elementscapacity - the capacity neededpublic static <F> FastFullList.FastFullListBuilder<F> builder()
F - the type of the elementspublic static <F> FastFullList<F> newList(F... elements)
F - the type of the elementselements - the elementspublic int usedSize()
public void set(int index,
E element)
index - the indexelement - the elementpublic E get(int index)
index - the indexpublic List<E> subList(int fromIndex, int toIndex)
fromIndex - starting indextoIndex - last index + 1Copyright © 2016–2021. All rights reserved.