com.kuka.graph.traverse
Class IterableGraphElements<E>
java.lang.Object
com.kuka.graph.traverse.IterableGraphElements<E>
- Type Parameters:
E - the type of the elements to be iterated over.
- All Implemented Interfaces:
- Iterable<E>
public final class IterableGraphElements<E>
- extends Object
- implements Iterable<E>
Class allowing for iteration over elements of a graph.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
iterator
public Iterator<E> iterator()
- Specified by:
iterator in interface Iterable<E>
forEach
public void forEach(GraphElementConsumer<? super E> action)
- Iterates over the elements and checks for each element whether it is accepted by
GraphElementConsumer.accept(Object) of the given element consumer. Iteration breaks upon the first
element violating this condition.
- Parameters:
action - the graph element consumer.
Copyright © 2019. All rights reserved.