- 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
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfaceExtends theElementswith mutable (writable) functionality, especially by enabling theIterator.remove()method in theIteratorprovided viaElements.MutableElements.iterator()and by providing theElements.MutableElements.add(Object)and theElements.MutableElements.remove(Object)methods. -
Method Summary
Modifier and TypeMethodDescriptionbooleanTests whether the specified object is an element of theElements(collection).iterator()Returns anIteratorinstance of all the data elements contained in theElements(collection). ------------------------------------------------------------------------- ATTENTION: TheIterator.remove()method may be disabled in the returnedIteratorinstance as theElementsis supposed to be read-only.
-
Method Details
-
iterator
Returns anIteratorinstance of all the data elements contained in theElements(collection). ------------------------------------------------------------------------- ATTENTION: TheIterator.remove()method may be disabled in the returnedIteratorinstance as theElementsis supposed to be read-only. -
contains
-