public final class Category
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableList<Group> |
getGroups()
Gets the groups of settings in this category.
|
java.lang.String |
getName()
Gets the name of this category.
|
com.google.common.collect.ImmutableList<Category> |
getSubcategories()
Gets the subcategories below this one.
|
static Category |
of(java.lang.String name,
java.util.Collection<Category> subcategories,
java.util.Collection<Group> groups)
Creates a new category of settings, with optional subcategories.
|
static Category |
of(java.lang.String name,
java.util.Collection<Group> groups)
Creates a new category of settings.
|
static Category |
of(java.lang.String name,
Group... groups)
Creates a new category of settings.
|
public static Category of(java.lang.String name, Group... groups)
name
- the name of the categorygroups
- the groups of settings in this categorypublic static Category of(java.lang.String name, java.util.Collection<Group> groups)
name
- the name of the categorygroups
- the groups of settings in this categorypublic static Category of(java.lang.String name, java.util.Collection<Category> subcategories, java.util.Collection<Group> groups)
name
- the name of the categorysubcategories
- the subcategories underneath this onegroups
- the groups of settings in this categorypublic java.lang.String getName()
public com.google.common.collect.ImmutableList<Category> getSubcategories()
public com.google.common.collect.ImmutableList<Group> getGroups()