The Collection is a set of (key, value) entries which can be iterated, and
is the base class for all collections in immutable, allowing them to
make use of all the Collection methods (such as map and filter).
Note: A collection is always iterated in the same order, however that order
may not always be well defined, as is the case for the Map and Set.
Collection is the abstract base class for concrete data structures. It
cannot be constructed directly.
Implementations should extend one of the subclasses, Collection.Keyed,
Collection.Indexed, or Collection.Set.
The
Collectionis a set of (key, value) entries which can be iterated, and is the base class for all collections inimmutable, allowing them to make use of all the Collection methods (such asmapandfilter).Note: A collection is always iterated in the same order, however that order may not always be well defined, as is the case for the
MapandSet.Collection is the abstract base class for concrete data structures. It cannot be constructed directly.
Implementations should extend one of the subclasses,
Collection.Keyed,Collection.Indexed, orCollection.Set.