Package org.refcodes.structure
Interface Elements<E>
-
- 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 anyElements
(collection) style class.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Elements.ClearableElements<E>
static interface
Elements.MutableElements<E>
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
contains(java.lang.Object aElement)
Tests whether the specified object is an element of theElements
(collection).java.util.Iterator<E>
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 Detail
-
iterator
java.util.Iterator<E> 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.- Returns:
- A (read-only)
Iterator
providing the elements of theElements
.
-
contains
boolean contains(java.lang.Object aElement)
-
-