|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.elasticsearch.util.collect.ImmutableCollection<E>
public abstract class ImmutableCollection<E>
An immutable collection. Does not permit null elements.
Note: Although this class is not final, it cannot be subclassed outside of this package as it has no public or protected constructors. Thus, instances of this type are guaranteed to be immutable.
| Method Summary | ||
|---|---|---|
boolean |
add(E e)
Guaranteed to throw an exception and leave the collection unmodified. |
|
boolean |
addAll(java.util.Collection<? extends E> newElements)
Guaranteed to throw an exception and leave the collection unmodified. |
|
void |
clear()
Guaranteed to throw an exception and leave the collection unmodified. |
|
boolean |
contains(java.lang.Object object)
|
|
boolean |
containsAll(java.util.Collection<?> targets)
|
|
boolean |
isEmpty()
|
|
abstract UnmodifiableIterator<E> |
iterator()
Returns an unmodifiable iterator across the elements in this collection. |
|
boolean |
remove(java.lang.Object object)
Guaranteed to throw an exception and leave the collection unmodified. |
|
boolean |
removeAll(java.util.Collection<?> oldElements)
Guaranteed to throw an exception and leave the collection unmodified. |
|
boolean |
retainAll(java.util.Collection<?> elementsToKeep)
Guaranteed to throw an exception and leave the collection unmodified. |
|
java.lang.Object[] |
toArray()
|
|
|
toArray(T[] other)
|
|
java.lang.String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Collection |
|---|
equals, hashCode, size |
| Method Detail |
|---|
public abstract UnmodifiableIterator<E> iterator()
iterator in interface java.lang.Iterable<E>iterator in interface java.util.Collection<E>public java.lang.Object[] toArray()
toArray in interface java.util.Collection<E>public <T> T[] toArray(T[] other)
toArray in interface java.util.Collection<E>
public boolean contains(@Nullable
java.lang.Object object)
contains in interface java.util.Collection<E>public boolean containsAll(java.util.Collection<?> targets)
containsAll in interface java.util.Collection<E>public boolean isEmpty()
isEmpty in interface java.util.Collection<E>public java.lang.String toString()
toString in class java.lang.Objectpublic final boolean add(E e)
add in interface java.util.Collection<E>java.lang.UnsupportedOperationException - alwayspublic final boolean remove(java.lang.Object object)
remove in interface java.util.Collection<E>java.lang.UnsupportedOperationException - alwayspublic final boolean addAll(java.util.Collection<? extends E> newElements)
addAll in interface java.util.Collection<E>java.lang.UnsupportedOperationException - alwayspublic final boolean removeAll(java.util.Collection<?> oldElements)
removeAll in interface java.util.Collection<E>java.lang.UnsupportedOperationException - alwayspublic final boolean retainAll(java.util.Collection<?> elementsToKeep)
retainAll in interface java.util.Collection<E>java.lang.UnsupportedOperationException - alwayspublic final void clear()
clear in interface java.util.Collection<E>java.lang.UnsupportedOperationException - always
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||