Package org.gephi.graph.api
Class ElementIterable.ElementIterableEmpty
- java.lang.Object
-
- org.gephi.graph.api.ElementIterable.ElementIterableEmpty
-
- All Implemented Interfaces:
Iterable,Iterator<Element>,ElementIterable
- Enclosing interface:
- ElementIterable<T extends Element>
public static final class ElementIterable.ElementIterableEmpty extends Object implements Iterator<Element>, ElementIterable
Empty element iterable.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.gephi.graph.api.ElementIterable
ElementIterable.ElementIterableEmpty
-
-
Field Summary
-
Fields inherited from interface org.gephi.graph.api.ElementIterable
EMPTY
-
-
Constructor Summary
Constructors Constructor Description ElementIterableEmpty()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoBreak()Break the iterator and release read lock (if any).booleanhasNext()Iterator<Element>iterator()Returns the element iterator.Elementnext()voidremove()Element[]toArray()Returns the iterator content as an array.Collection<Element>toCollection()Returns the iterator content as a collection.Set<Element>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<Element> iterator()
Description copied from interface:ElementIterableReturns the element iterator.- Specified by:
iteratorin interfaceElementIterable- Specified by:
iteratorin interfaceIterable- Returns:
- the iterator.
-
toArray
public Element[] toArray()
Description copied from interface:ElementIterableReturns the iterator content as an array.- Specified by:
toArrayin interfaceElementIterable- Returns:
- element array
-
toCollection
public Collection<Element> toCollection()
Description copied from interface:ElementIterableReturns the iterator content as a collection.- Specified by:
toCollectionin interfaceElementIterable- Returns:
- element collection
-
toSet
public Set<Element> toSet()
Description copied from interface:ElementIterableReturns the iterator content as a set.- Specified by:
toSetin interfaceElementIterable- Returns:
- element set
-
doBreak
public void doBreak()
Description copied from interface:ElementIterableBreak the iterator and release read lock (if any).- Specified by:
doBreakin interfaceElementIterable
-
-