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 void
doBreak()
Break the iterator and release read lock (if any).boolean
hasNext()
Iterator<Element>
iterator()
Returns the element iterator.Element
next()
void
remove()
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:ElementIterable
Returns the element iterator.- Specified by:
iterator
in interfaceElementIterable
- Specified by:
iterator
in interfaceIterable
- Returns:
- the iterator.
-
toArray
public Element[] toArray()
Description copied from interface:ElementIterable
Returns the iterator content as an array.- Specified by:
toArray
in interfaceElementIterable
- Returns:
- element array
-
toCollection
public Collection<Element> toCollection()
Description copied from interface:ElementIterable
Returns the iterator content as a collection.- Specified by:
toCollection
in interfaceElementIterable
- Returns:
- element collection
-
toSet
public Set<Element> toSet()
Description copied from interface:ElementIterable
Returns the iterator content as a set.- Specified by:
toSet
in interfaceElementIterable
- Returns:
- element set
-
doBreak
public void doBreak()
Description copied from interface:ElementIterable
Break the iterator and release read lock (if any).- Specified by:
doBreak
in interfaceElementIterable
-
-