Java - (Enumerable|Iterator) Data Type (Iterable interface)


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

  • 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

Enumerable data type

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


Java - Stream Processing, false/true)


  • Does a string starts with a root directory ?
String s = "c:\";
Boolean isAbsolutePath = StreamSupport
      .stream(fileSystem.getRootDirectories().spliterator(), false)

Powered by ComboStrap