documentationfor yFiles for HTML 2.6

An implementation of a doubly linked list that provides direct access to the cells that store the elements.

Inheritance Hierarchy
Implemented Interfaces

Remarks

The cells are represented by class ListCell.

This class supports fast access and removal operations, specifically, it is possible to remove an element in constant time (i.e. O(1)) given a reference to its list cell.

It also supports iteration over the elements either by using the list cells directly (methods firstCell/lastCell together with succCell/predCell, respectively) or by means of a cursor (cursor).

Furthermore, this list offers its own sort method. Note that this class also provides all relevant methods to use the list like a stack data type.

This implementation permits null as values. The cursor returned by instances of this class is not fail fast.

Type Details

yfiles module
algorithms
yfiles-umd modules
All layout modules, view-layout-bridge
Legacy UMD name
yfiles.algorithms.YList

See Also

Constructors

Properties

Methods