E - The type of the elements being stored in the
Elements.MutableElements.public static interface Elements.MutableElements<E> extends Elements.ClearableElements<E>
Elements with mutable (writable) functionality,
especially by enabling the Iterator.remove() method in the
Iterator provided via iterator() and by providing the
add(Object) and the remove(Object) methods.Elements.ClearableElements<E>, Elements.MutableElements<E>| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E aElement)
Same as
Collection.add(Object). |
Iterator<E> |
iterator()
Returns an
Iterator instance of all the data elements
contained in the container (collection).
---------------------------------------------------------------------
ATTENTION: The Iterator.remove() method is enabled in the
returned Iterator instance as the Elements.MutableElements is
possibly readable and writable. |
boolean |
remove(E aElement)
Same as
Collection.remove(Object). |
boolean add(E aElement)
Collection.add(Object).aElement - the element whose presence in this collection is to
be ensuredCollection.add(Object)boolean remove(E aElement)
Collection.remove(Object).aElement - The element to be removed from this collection, if
presentCollection.remove(Object)Iterator<E> iterator()
Iterator instance of all the data elements
contained in the container (collection).
---------------------------------------------------------------------
ATTENTION: The Iterator.remove() method is enabled in the
returned Iterator instance as the Elements.MutableElements is
possibly readable and writable.Copyright © 2017. All rights reserved.