public abstract class ImmutableCollectionBase<A,E> extends ImmutableBase<A> implements Collection<E>
array, emptyArray, length| Modifier | Constructor and Description |
|---|---|
protected |
ImmutableCollectionBase(A[] array,
int length) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e) |
boolean |
addAll(Collection<? extends E> c) |
boolean |
containsAll(Collection<?> c) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
String |
toString() |
clear, isEmpty, sizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclear, contains, equals, hashCode, isEmpty, iterator, parallelStream, removeIf, size, spliterator, stream, toArray, toArrayprotected ImmutableCollectionBase(A[] array, int length)
public boolean containsAll(Collection<?> c)
containsAll in interface Collection<E>public boolean add(E e)
add in interface Collection<E>public boolean remove(Object o)
remove in interface Collection<E>public boolean addAll(Collection<? extends E> c)
addAll in interface Collection<E>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<E>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<E>Copyright © 2021. All rights reserved.