public class NonNullList<E>
extends java.util.AbstractList<E>
Modifier and Type | Field and Description |
---|---|
private E |
defaultValue |
private java.util.List<E> |
list |
Modifier | Constructor and Description |
---|---|
protected |
NonNullList() |
protected |
NonNullList(java.util.List<E> p_i47327_1_,
E p_i47327_2_) |
Modifier and Type | Method and Description |
---|---|
void |
add(int p_add_1_,
E p_add_2_) |
void |
clear() |
static <E> NonNullList<E> |
create() |
E |
get(int p_get_1_) |
static <E> NonNullList<E> |
of(E p_193580_0_,
E... p_193580_1_) |
E |
remove(int p_remove_1_) |
E |
set(int p_set_1_,
E p_set_2_) |
int |
size() |
static <E> NonNullList<E> |
withSize(int p_191197_0_,
E p_191197_1_) |
add, addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static <E> NonNullList<E> create()
public static <E> NonNullList<E> withSize(int p_191197_0_, E p_191197_1_)
@SafeVarargs public static <E> NonNullList<E> of(E p_193580_0_, E... p_193580_1_)
@Nonnull public E get(int p_get_1_)
public void add(int p_add_1_, E p_add_2_)
public E remove(int p_remove_1_)
public int size()