Class AbstractComponentTree<E extends Component>
java.lang.Object
net.dv8tion.jda.internal.components.tree.AbstractComponentTree<E>
- All Implemented Interfaces:
ComponentTree<E>
- Direct Known Subclasses:
ComponentTreeImpl
,MessageComponentTreeImpl
,ModalComponentTreeImpl
public abstract class AbstractComponentTree<E extends Component>
extends Object
implements ComponentTree<E>
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.dv8tion.jda.api.components.tree.ComponentTree
ComponentTree.Type
-
Method Summary
Modifier and TypeMethodDescriptionUnmodifiable list of components contained by this tree.withDisabled
(boolean disabled) Enables or disables all components which can be enabled/disabled, and constructs a new tree from the result.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, getType, replace
-
Method Details
-
getComponents
Description copied from interface:ComponentTree
Unmodifiable list of components contained by this tree.- Specified by:
getComponents
in interfaceComponentTree<E extends Component>
- Returns:
- An unmodifiable list of components in this tree
-
withDisabled
Description copied from interface:ComponentTree
Enables or disables all components which can be enabled/disabled, and constructs a new tree from the result.- Specified by:
withDisabled
in interfaceComponentTree<E extends Component>
- Returns:
- A new tree with all components enabled/disabled.
-