Interface Iterable<T>

GoJS® Diagramming Components
version 3.0.0a1
by Northwoods Software®

Hierarchy

This interface is implemented by the List, Set, and Map classes; it provides the iterator read-only property that returns an Iterator.

Typical usage is:

var it = anIterableCollection.iterator;
while (it.next()) {
var item = it.value;
}

Type Parameters

  • T

Implemented by

Index

Methods

Properties

Methods

  • Returns the first item in the list, or null if there is none.

    Returns T

    This returns null if there are no items in the list.

Properties

This read-only property is the number of elements in the collection.

Gets an Iterator that can iterate over the items in the collection.

Typical usage is:

 var it = anIterableCollection.iterator;
while (it.next()) {
var item = it.value;
}
returns