AbstractValue type yielded by the collection.
Key type yielded with each value.
Value type yielded by the collection.
Key type yielded with each value.
Number of values currently stored in the collection.
The collection size.
AbstractclearRemoves every value from the collection.
Checks whether the collection contains no values.
true when the collection is empty.
AbstracttraverseVisits collection values in implementation-defined key order.
Callback result that should stop traversal early.
Whether traversal should run in reverse order.
Callback invoked for each value.
breakFlag when traversal stops early, otherwise !breakFlag.
Base class for iterable collection data structures.
Remarks
Subclasses provide storage and traversal by implementing clear and traverse. The inherited iterator method caches one forward iterator and one reverse iterator for reuse.
Example: Creating a small read-only collection