Class ComponentIterator
java.lang.Object
net.dv8tion.jda.api.components.utils.ComponentIterator
-
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentIteratorcreate(Collection<? extends Component> components) Creates aComponentIteratorto recursively iterate on the provided components.createStream(Collection<? extends Component> components) booleanhasNext()next()Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining, remove
-
Method Details
-
create
@Nonnull public static ComponentIterator create(@Nonnull Collection<? extends Component> components) Creates aComponentIteratorto recursively iterate on the provided components.- Parameters:
components- The components to iterate on- Returns:
- A new
ComponentIterator
-
createStream
-
hasNext
-
next
-