| Modifier and Type | Method and Description |
|---|---|
MutableCategory<T> |
addChild(String name)
Add a new child
Category with the given name and
return it. |
boolean |
addElements(Iterable<? extends T> elements)
Add the given elements to this
Category |
MutableCategory<T> |
getChild(String name)
Returns the child category with the given name, or
null
if there is no child with the given name. |
List<? extends MutableCategory<T>> |
getChildren()
Returns an unmodifiable (possibly empty) list containing the
children of this category.
|
void |
removeAllChildren()
Remove all children from this
Category. |
void |
removeAllElements()
Remove all elements from this
Category. |
MutableCategory<T> |
removeChild(String name)
Remove the child
Category with the given name. |
boolean |
removeElements(Iterable<? extends T> elements)
Remove the given elements from this
Category |
addCategoryListener, getElements, getName, removeCategoryListenerMutableCategory<T> addChild(String name)
Category with the given name and
return it. If such a child already exists, it will be
returned.MutableCategory<T> removeChild(String name)
Category with the given name.void removeAllChildren()
Category. This will
not cause any elements to be removed.boolean addElements(Iterable<? extends T> elements)
Categoryelements - The element to addCategory changed through this
action (that is, whether at least one of the elements was
not yet present)boolean removeElements(Iterable<? extends T> elements)
Categoryvoid removeAllElements()
Category. This will
not cause any children to be removed.List<? extends MutableCategory<T>> getChildren()
MutableCategorygetChildren in interface Category<T>MutableCategory<T> getChild(String name)
null
if there is no child with the given name.
This method specifies the return type to be a MutableCategoryCopyright © 2018. All rights reserved.