E
- The type of the elements being stored in the
Elements.MutableElements
.Clearable
, Elements<E>
, Elements.ClearableElements<E>
Container.MutableContainer<E>
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 | 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(Object 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(Object 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 © 2018. All rights reserved.