- Type Parameters:
E
- The type of the elements being stored in theElements.MutableElements
.
- All Known Subinterfaces:
Container<E>
,Container.ClearableContainer<E>
,Container.MutableContainer<E>
,Elements.ClearableElements<E>
,Elements.MutableElements<E>
public interface Elements<E>
Basic functionality being provided by any
Elements
(collection) style
class.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
static interface
Extends theElements
with mutable (writable) functionality, especially by enabling theIterator.remove()
method in theIterator
provided viaElements.MutableElements.iterator()
and by providing theElements.MutableElements.add(Object)
and theElements.MutableElements.remove(Object)
methods. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Tests whether the specified object is an element of theElements
(collection).iterator()
Returns anIterator
instance of all the data elements contained in theElements
(collection). ------------------------------------------------------------------------- ATTENTION: TheIterator.remove()
method may be disabled in the returnedIterator
instance as theElements
is supposed to be read-only.
-
Method Details
-
iterator
Returns anIterator
instance of all the data elements contained in theElements
(collection). ------------------------------------------------------------------------- ATTENTION: TheIterator.remove()
method may be disabled in the returnedIterator
instance as theElements
is supposed to be read-only. -
contains
-