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