Package io.guise.framework
Class Category
- All Implemented Interfaces:
com.globalmentor.model.IDed<String>
,com.globalmentor.model.Named<String>
,Comparable<com.globalmentor.model.Named<String>>
A general category used in Guise.
- Author:
- Garret Wilson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setCategories
(List<Category> categories) Sets the categories.Methods inherited from class com.globalmentor.model.DefaultComparableIDNamed
equals, getID, hashCode, toString
Methods inherited from class com.globalmentor.model.DefaultComparableNamed
compareTo
Methods inherited from class com.globalmentor.model.DefaultNamed
getName
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Comparable
compareTo
-
Constructor Details
-
Category
Constructor for a category with the same ID and name.- Parameters:
id
- The ID of the category, which will also be used as the category's name.
-
Category
Constructor specifying the ID and name.- Parameters:
id
- The ID of the category.name
- The name of the category.
-
-
Method Details
-
getCategories
- Returns:
- The read-only iterable of categories.
-
setCategories
Sets the categories.- Parameters:
categories
- The list of new categories.
-