A - content typepublic final class NonEmptyList<A> extends Object implements List<A>
| Constructor and Description |
|---|
NonEmptyList(A a,
A... as) |
NonEmptyList(Collection<A> as) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(A a) |
void |
add(int i,
A a) |
boolean |
addAll(Collection<? extends A> as) |
boolean |
addAll(int i,
Collection<? extends A> as) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> objects) |
A |
get(int i) |
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator<A> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<A> |
listIterator() |
ListIterator<A> |
listIterator(int i) |
A |
remove(int i) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> objects) |
boolean |
retainAll(Collection<?> objects) |
A |
set(int i,
A a) |
int |
size() |
List<A> |
subList(int i,
int i1) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] ts) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, replaceAll, sort, spliteratorparallelStream, removeIf, streampublic NonEmptyList(Collection<A> as) throws IllegalArgumentException
IllegalArgumentException - collection is emptypublic int size()
public boolean isEmpty()
public boolean contains(Object o)
public Object[] toArray()
public <T> T[] toArray(T[] ts)
public boolean add(A a)
public boolean remove(Object o)
public boolean containsAll(Collection<?> objects)
containsAll in interface Collection<A>containsAll in interface List<A>public boolean addAll(Collection<? extends A> as)
public boolean addAll(int i,
Collection<? extends A> as)
public boolean removeAll(Collection<?> objects)
public boolean retainAll(Collection<?> objects)
public void clear()
public int lastIndexOf(Object o)
lastIndexOf in interface List<A>public ListIterator<A> listIterator()
listIterator in interface List<A>public ListIterator<A> listIterator(int i)
listIterator in interface List<A>Copyright © 2009–2021 Opencast Project. All rights reserved.