Package org.gephi.graph.api
Interface NodeIterable
-
- All Superinterfaces:
ElementIterable<Node>
,Iterable<Node>
- All Known Implementing Classes:
NodeIterable.NodeIterableEmpty
public interface NodeIterable extends ElementIterable<Node>
A node iterable.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
NodeIterable.NodeIterableEmpty
Empty node iterable.-
Nested classes/interfaces inherited from interface org.gephi.graph.api.ElementIterable
ElementIterable.ElementIterableEmpty
-
-
Field Summary
Fields Modifier and Type Field Description static NodeIterable
EMPTY
The static empty iterable.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Iterator<Node>
iterator()
Returns a node iterator.Node[]
toArray()
Returns the iterator content as an array.Collection<Node>
toCollection()
Returns the iterator content as a collection.Set<Node>
toSet()
Returns the iterator content as a set.-
Methods inherited from interface org.gephi.graph.api.ElementIterable
doBreak
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
EMPTY
static final NodeIterable EMPTY
The static empty iterable.
-
-
Method Detail
-
toArray
Node[] toArray()
Returns the iterator content as an array.- Specified by:
toArray
in interfaceElementIterable<Node>
- Returns:
- node array
-
toCollection
Collection<Node> toCollection()
Returns the iterator content as a collection.- Specified by:
toCollection
in interfaceElementIterable<Node>
- Returns:
- node collection
-
toSet
Set<Node> toSet()
Returns the iterator content as a set.- Specified by:
toSet
in interfaceElementIterable<Node>
- Returns:
- node set
-
-