Package org.gephi.graph.api
Interface ElementIterable<T extends Element>
-
- Type Parameters:
T- the element class
- All Superinterfaces:
Iterable<T>
- All Known Subinterfaces:
EdgeIterable,NodeIterable
- All Known Implementing Classes:
EdgeIterable.EdgeIterableEmpty,ElementIterable.ElementIterableEmpty,NodeIterable.NodeIterableEmpty
public interface ElementIterable<T extends Element> extends Iterable<T>
Element iterable.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classElementIterable.ElementIterableEmptyEmpty element iterable.
-
Field Summary
Fields Modifier and Type Field Description static ElementIterableEMPTYEmpty iterable.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddoBreak()Break the iterator and release read lock (if any).Iterator<T>iterator()Returns the element iterator.T[]toArray()Returns the iterator content as an array.Collection<T>toCollection()Returns the iterator content as a collection.Set<T>toSet()Returns the iterator content as a set.-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
EMPTY
static final ElementIterable EMPTY
Empty iterable.
-
-
Method Detail
-
toArray
T[] toArray()
Returns the iterator content as an array.- Returns:
- element array
-
toCollection
Collection<T> toCollection()
Returns the iterator content as a collection.- Returns:
- element collection
-
doBreak
void doBreak()
Break the iterator and release read lock (if any).
-
-