A - the array item typeE - the collection element typepublic abstract class ImmutableCollectionBase<A,E> extends ImmutableBase<A> implements Collection<E>
Collection and its derived classes.| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e)
Modifying operation - not allowed.
|
boolean |
addAll(Collection<? extends E> c)
Modifying operation - not allowed.
|
boolean |
containsAll(Collection<?> c)
Test whether the collection contains all of the objects in a supplied
Collection. |
boolean |
remove(Object o)
Modifying operation - not allowed.
|
boolean |
removeAll(Collection<?> c)
Modifying operation - not allowed.
|
boolean |
retainAll(Collection<?> c)
Modifying operation - not allowed.
|
String |
toString()
Returns a string representation of this collection.
|
clear, isEmpty, sizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclear, contains, equals, hashCode, isEmpty, iterator, parallelStream, removeIf, size, spliterator, stream, toArray, toArraypublic boolean containsAll(Collection<?> c)
Collection.containsAll in interface Collection<E>c - the other Collectiontrue if the collection contains all of the objects in the other Collectionpublic boolean add(E e)
add in interface Collection<E>UnsupportedOperationException - (in all cases)public boolean remove(Object o)
remove in interface Collection<E>UnsupportedOperationException - (in all cases)public boolean addAll(Collection<? extends E> c)
addAll in interface Collection<E>UnsupportedOperationException - (in all cases)public boolean removeAll(Collection<?> c)
removeAll in interface Collection<E>UnsupportedOperationException - (in all cases)public boolean retainAll(Collection<?> c)
retainAll in interface Collection<E>UnsupportedOperationException - (in all cases)public String toString()
String.valueOf(Object).Copyright © 2021. All rights reserved.