Package org.gephi.graph.api
Class EdgeIterable.EdgeIterableEmpty
- java.lang.Object
-
- org.gephi.graph.api.EdgeIterable.EdgeIterableEmpty
-
- All Implemented Interfaces:
Iterable<Edge>
,Iterator<Edge>
,EdgeIterable
,ElementIterable<Edge>
- Enclosing interface:
- EdgeIterable
public static final class EdgeIterable.EdgeIterableEmpty extends Object implements Iterator<Edge>, EdgeIterable
Empty edge iterable.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.gephi.graph.api.EdgeIterable
EdgeIterable.EdgeIterableEmpty
-
Nested classes/interfaces inherited from interface org.gephi.graph.api.ElementIterable
ElementIterable.ElementIterableEmpty
-
-
Field Summary
-
Fields inherited from interface org.gephi.graph.api.EdgeIterable
EMPTY
-
-
Constructor Summary
Constructors Constructor Description EdgeIterableEmpty()
-
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<Edge>
iterator()
Returns an edge iterator.Edge
next()
void
remove()
Edge[]
toArray()
Returns the iterator content as an array.Collection<Edge>
toCollection()
Returns the iterator content as a collection.Set<Edge>
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<Edge> iterator()
Description copied from interface:EdgeIterable
Returns an edge iterator.- Specified by:
iterator
in interfaceEdgeIterable
- Specified by:
iterator
in interfaceElementIterable<Edge>
- Specified by:
iterator
in interfaceIterable<Edge>
- Returns:
- edge iterator
-
toArray
public Edge[] toArray()
Description copied from interface:EdgeIterable
Returns the iterator content as an array.- Specified by:
toArray
in interfaceEdgeIterable
- Specified by:
toArray
in interfaceElementIterable<Edge>
- Returns:
- edge array
-
toCollection
public Collection<Edge> toCollection()
Description copied from interface:EdgeIterable
Returns the iterator content as a collection.- Specified by:
toCollection
in interfaceEdgeIterable
- Specified by:
toCollection
in interfaceElementIterable<Edge>
- Returns:
- edge collection
-
toSet
public Set<Edge> toSet()
Description copied from interface:EdgeIterable
Returns the iterator content as a set.- Specified by:
toSet
in interfaceEdgeIterable
- Specified by:
toSet
in interfaceElementIterable<Edge>
- Returns:
- edge set
-
doBreak
public void doBreak()
Description copied from interface:ElementIterable
Break the iterator and release read lock (if any).- Specified by:
doBreak
in interfaceElementIterable<Edge>
-
-