public class ForesterBook extends java.lang.Object implements IForesterBook
| Constructor and Description |
|---|
ForesterBook() |
| Modifier and Type | Method and Description |
|---|---|
IBookCategory |
addCategory(java.lang.String name)
Creates a category, add it to this book and returns it.
|
java.util.Collection<IBookCategory> |
getCategories() |
IBookCategory |
getCategory(java.lang.String name) |
java.util.Collection<java.lang.String> |
getCategoryNames() |
java.util.Collection<IBookEntry> |
getEntries(java.lang.String category) |
IBookEntry |
getEntry(java.lang.String name) |
public java.util.Collection<java.lang.String> getCategoryNames()
getCategoryNames in interface IForesterBookpublic IBookCategory addCategory(java.lang.String name)
IForesterBookaddCategory in interface IForesterBookname - A unique identifier for the category.@Nullable public IBookCategory getCategory(java.lang.String name)
getCategory in interface IForesterBookpublic java.util.Collection<IBookCategory> getCategories()
getCategories in interface IForesterBookpublic java.util.Collection<IBookEntry> getEntries(java.lang.String category)
getEntries in interface IForesterBook@Nullable public IBookEntry getEntry(java.lang.String name)
getEntry in interface IForesterBook