We have now discovered the collection framework, and it's time to have a look at what we have mastered.
The collection framework is set for high-performance classes to store and manipulate groups of objects. The framework provides a unified architecture to store and manipulate the elements of a collection and hide the actual implementation.
Several collections implicitly support ordering of elements and help us to sort elements without effort. We can also sort collections by providing a collection-compare function via a Comparator or an object-compare method via the Comparable interface.
The Iterable interface defines the common behavior of all the classes in a collection framework that supports a mechanism to iterate through all the elements of a collection. The Iterator follows the fail-fast principles to immediately report whether the iterating collection was modified. If you plan to create your own implementation of the Iterable interface, you need to extend IterableBase
or IterableMixin...