Modifier and Type | Class and Description |
---|---|
class |
MapChain.Atom |
Constructor and Description |
---|
MapChain() |
Modifier and Type | Method and Description |
---|---|
MapChain.Atom |
add(T data)
Add an atom to this chain
|
void |
clear()
clear chain
(data will be lost, so if need to save,
navigate and save prior to clearing)
|
void |
forEach(java.util.function.Consumer<T> consumer)
Do something for each atom in a chaain
|
T[] |
toArray()
Returns an array of chain's elements
returns array of chain's elements
|
List<T> |
toList()
Returns chains elements in a standard list
|
String |
toString() |
public MapChain.Atom add(T data)
Chain
public void forEach(java.util.function.Consumer<T> consumer)
Chain
public List<T> toList()
Chain
toList
in interface Chain<T>
Chain.toList()
public T[] toArray()
Chain
toArray
in interface Chain<T>
Chain.toArray()
public String toString()
toString
in class Object
Object.toString()
public void clear()
Chain
clear
in interface Chain<T>
Chain.clear()
Copyright © 2008, 2017, Oracle. All rights reserved.