Class ComponentTreeImpl<E extends Component>
java.lang.Object
net.dv8tion.jda.internal.components.tree.AbstractComponentTree<E>
net.dv8tion.jda.internal.components.tree.ComponentTreeImpl<E>
- All Implemented Interfaces:
ComponentTree<E>
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.dv8tion.jda.api.components.tree.ComponentTree
ComponentTree.Type
-
Constructor Summary
ConstructorsConstructorDescriptionComponentTreeImpl
(Class<? extends Component> componentType, Collection<E> components) -
Method Summary
Modifier and TypeMethodDescriptiongetType()
Returns the type of this component tree.replace
(ComponentReplacer replacer) Replaces and/or removes components using the providedComponentReplacer
, and construct a new tree from the result.Methods inherited from class net.dv8tion.jda.internal.components.tree.AbstractComponentTree
getComponents, withDisabled
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.dv8tion.jda.api.components.tree.ComponentTree
asDisabled, asEnabled, find, findAll, findAll
-
Constructor Details
-
ComponentTreeImpl
-
-
Method Details
-
getType
Description copied from interface:ComponentTree
Returns the type of this component tree.- Returns:
- The type of this component tree
-
replace
Description copied from interface:ComponentTree
Replaces and/or removes components using the providedComponentReplacer
, and construct a new tree from the result.- Parameters:
replacer
- TheComponentReplacer
to apply- Returns:
- A new tree with the new components
- See Also:
-