@Deprecated public class SingletonList<E> extends AbstractList<E>
modCount
Constructor and Description |
---|
SingletonList(E o)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Object other)
Deprecated.
|
E |
get(int index)
Deprecated.
|
int |
size()
Deprecated.
|
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
addAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
public SingletonList(E o)
public int size()
size
in interface Collection<E>
size
in interface List<E>
size
in class AbstractCollection<E>
public boolean contains(Object other)
contains
in interface Collection<E>
contains
in interface List<E>
contains
in class AbstractCollection<E>