Java - (Enumerable|Iterator) Data Type

> Procedural Languages > Java

1 - About

The (Enumeration|Iterator) interface defines the methods by which you can:

  • iterate
  • enumerate
  • obtain one at a time

the elements of a collection.

The Enumerator Interface:

  • has been deprecated for the use of Iterator.
  • is an external iterators

3 - Enumerable data type

Enumerable types are class that implement the enum or iteratable interface such as:

Advertising
lang/java/enumerable.txt · Last modified: 2017/02/12 21:05 by gerardnico