Class GroupedAnnotationLabels
Object
GroupedAnnotationLabels
A set of
AnnotationLabels partitioned into their unique groups.-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of GroupedAnnotationLabels. -
Method Summary
Modifier and TypeMethodDescriptionGets the collection ofAnnotationLabels for a specific group.keySet()Gets the set of group keys.intGets the number of unique groups.
-
Constructor Details
-
GroupedAnnotationLabels
Creates a new instance of GroupedAnnotationLabels.- Parameters:
labels- the collection ofAnnotationLabels to group.
-
-
Method Details
-
numberGroups
public int numberGroups()Gets the number of unique groups.- Returns:
- the number of groups.
-
keySet
Gets the set of group keys.- Returns:
- a set of group keys.
-
get
Gets the collection ofAnnotationLabels for a specific group.- Parameters:
key- the group key.- Returns:
- a collection of
AnnotationLabels belonging to the specified group.
-