P - Parent list itemC - Child list itempublic class ExpandableWrapper<P extends Parent<C>,C>
extends java.lang.Object
| Constructor and Description |
|---|
ExpandableWrapper(C child)
Constructor to wrap a child object of type
C |
ExpandableWrapper(P parent)
Constructor to wrap a parent object of type
P. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
C |
getChild() |
P |
getParent() |
java.util.List<ExpandableWrapper<P,C>> |
getWrappedChildList() |
int |
hashCode() |
boolean |
isExpanded() |
boolean |
isParent() |
boolean |
isParentInitiallyExpanded() |
void |
setExpanded(boolean expanded) |
void |
setParent(P parent) |
public ExpandableWrapper(@NonNull
P parent)
P.parent - The parent object to wrappublic ExpandableWrapper(@NonNull
C child)
Cchild - The child object to wrappublic P getParent()
public void setParent(@NonNull
P parent)
public C getChild()
public boolean isExpanded()
public void setExpanded(boolean expanded)
public boolean isParent()
public boolean isParentInitiallyExpanded()
java.lang.IllegalStateException - If a parent isn't being wrappedpublic java.util.List<ExpandableWrapper<P,C>> getWrappedChildList()
java.lang.IllegalStateException - If a parent isn't being wrappedpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object