C
- the class of instances that represent the classification categoriespublic interface Classification<C>
extends java.lang.Iterable<C>
classification
.
The result is a list of categories that the target of the classification belongs to.
Depending on the implementation the confidence levels may be specified.Modifier and Type | Method and Description |
---|---|
boolean |
contains(C category)
Returns whether this classification contains a given category or not.
|
java.lang.Class<? extends C> |
getStoredClass()
Returns the class of instances that represent the classification categories (classes).
|
java.util.Iterator<C> |
iterator()
Returns an iterator over all categories of this classification.
|
int |
size()
Returns the number of categories of this classification.
|
java.lang.Class<? extends C> getStoredClass()
int size()
boolean contains(C category) throws java.lang.NullPointerException
category
- the category to search forjava.lang.NullPointerException
- if the given category is null