| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<Component> |
children
The list of children.
|
protected static java.util.List<Component> |
EMPTY_COMPONENT_LIST
An empty, unmodifiable, list of components.
|
protected Style |
style
The style of this component.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractComponent(@NonNull java.util.List<Component> children,
@NonNull Style style) |
| Modifier and Type | Method and Description |
|---|---|
@NonNull java.util.List<Component> |
children()
Gets the unmodifiable list of children.
|
protected boolean |
equals(@NonNull AbstractComponent that) |
boolean |
equals(@Nullable java.lang.Object other) |
int |
hashCode() |
protected void |
populateToString(@NonNull java.util.Map<java.lang.String,java.lang.Object> builder) |
@NonNull Style |
style()
Gets the style of this component.
|
@NonNull java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitappend, append, children, clickEvent, clickEvent, color, color, contains, decoration, decoration, decoration, decorations, decorations, detectCycle, hasDecoration, hasStyling, hoverEvent, hoverEvent, insertion, insertion, mergeColor, mergeDecorations, mergeEvents, styleprotected static final java.util.List<Component> EMPTY_COMPONENT_LIST
protected final java.util.List<Component> children
protected final Style style
public @NonNull java.util.List<Component> children()
Componentpublic @NonNull Style style()
Componentpublic boolean equals(@Nullable java.lang.Object other)
equals in class java.lang.Objectprotected boolean equals(@NonNull AbstractComponent that)
public int hashCode()
hashCode in class java.lang.Objectpublic @NonNull java.lang.String toString()
toString in class java.lang.Objectprotected void populateToString(@NonNull java.util.Map<java.lang.String,java.lang.Object> builder)