Package org.gephi.graph.api
Class NodeIterable.NodeIterableEmpty
- java.lang.Object
-
- org.gephi.graph.api.NodeIterable.NodeIterableEmpty
-
- All Implemented Interfaces:
Iterable<Node>
,Iterator<Node>
,ElementIterable<Node>
,NodeIterable
- Enclosing interface:
- NodeIterable
public static final class NodeIterable.NodeIterableEmpty extends Object implements Iterator<Node>, NodeIterable
Empty node iterable.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.gephi.graph.api.ElementIterable
ElementIterable.ElementIterableEmpty
-
Nested classes/interfaces inherited from interface org.gephi.graph.api.NodeIterable
NodeIterable.NodeIterableEmpty
-
-
Field Summary
-
Fields inherited from interface org.gephi.graph.api.NodeIterable
EMPTY
-
-
Constructor Summary
Constructors Constructor Description NodeIterableEmpty()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doBreak()
Break the iterator and release read lock (if any).boolean
hasNext()
Iterator<Node>
iterator()
Returns a node iterator.Node
next()
void
remove()
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 class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Method Detail
-
iterator
public Iterator<Node> iterator()
Description copied from interface:NodeIterable
Returns a node iterator.- Specified by:
iterator
in interfaceElementIterable<Node>
- Specified by:
iterator
in interfaceIterable<Node>
- Specified by:
iterator
in interfaceNodeIterable
- Returns:
- node iterator
-
toArray
public Node[] toArray()
Description copied from interface:NodeIterable
Returns the iterator content as an array.- Specified by:
toArray
in interfaceElementIterable<Node>
- Specified by:
toArray
in interfaceNodeIterable
- Returns:
- node array
-
toCollection
public Collection<Node> toCollection()
Description copied from interface:NodeIterable
Returns the iterator content as a collection.- Specified by:
toCollection
in interfaceElementIterable<Node>
- Specified by:
toCollection
in interfaceNodeIterable
- Returns:
- node collection
-
toSet
public Set<Node> toSet()
Description copied from interface:NodeIterable
Returns the iterator content as a set.- Specified by:
toSet
in interfaceElementIterable<Node>
- Specified by:
toSet
in interfaceNodeIterable
- Returns:
- node set
-
doBreak
public void doBreak()
Description copied from interface:ElementIterable
Break the iterator and release read lock (if any).- Specified by:
doBreak
in interfaceElementIterable<Node>
-
-