E - the type of the elementspublic final class FullList<E> extends Object implements List<E>
blankElement.
When we set an element at a given index, the blank element is replaced by the
new element.| Modifier and Type | Class and Description |
|---|---|
static class |
FullList.FullListBuilder<F>
A builder for a full list
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e) |
void |
add(int index,
E element) |
boolean |
addAll(Collection<? extends E> c) |
boolean |
addAll(int index,
Collection<? extends E> c) |
static <F> FullList.FullListBuilder<F> |
builder() |
int |
capacity() |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
equals(Object o) |
E |
get(int index) |
int |
hashCode() |
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<E> |
listIterator() |
ListIterator<E> |
listIterator(int index) |
static <F> FullList<F> |
newList(F... elements)
Builds a new full list,with null as blank element
|
static <F> FullList<F> |
newListWithCapacity(int capacity)
Builds a new full list, with null as blank element
|
static <F> FullList<F> |
newListWithCapacity(int capacity,
F... elements)
Builds a new full list, with null as blank element
|
E |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
E |
set(int index,
E element) |
int |
size() |
List<E> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
String |
toString() |
int |
usedSize() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitreplaceAll, sort, spliteratorparallelStream, removeIf, streampublic static <F> FullList.FullListBuilder<F> builder()
F - the type the elementspublic static <F> FullList<F> newList(F... elements)
F - the type of the elementselements - the elementspublic static <F> FullList<F> newListWithCapacity(int capacity)
F - the type of the elementscapacity - the initial capacity of the listpublic static <F> FullList<F> newListWithCapacity(int capacity, F... elements)
F - the type of the elementscapacity - the initial capacity of the listelements - the elementspublic boolean add(E e)
public boolean addAll(Collection<? extends E> c)
public boolean addAll(int index,
Collection<? extends E> c)
public void clear()
public boolean contains(Object o)
public boolean containsAll(Collection<?> c)
containsAll in interface Collection<E>containsAll in interface List<E>public boolean equals(Object o)
public int hashCode()
public boolean isEmpty()
public int lastIndexOf(Object o)
lastIndexOf in interface List<E>public ListIterator<E> listIterator()
listIterator in interface List<E>public ListIterator<E> listIterator(int index)
listIterator in interface List<E>public boolean remove(Object o)
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public int size()
public int usedSize()
public Object[] toArray()
public <T> T[] toArray(T[] a)
public int capacity()
Copyright © 2016–2021. All rights reserved.