Class GroupedAnnotationLabels
Object
GroupedAnnotationLabels
A set of
AnnotationLabel
s partitioned into their unique groups.-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of GroupedAnnotationLabels. -
Method Summary
Modifier and TypeMethodDescriptionGets the collection ofAnnotationLabel
s for a specific group.keySet()
Gets the set of group keys.int
Gets the number of unique groups.
-
Constructor Details
-
GroupedAnnotationLabels
Creates a new instance of GroupedAnnotationLabels.- Parameters:
labels
- the collection ofAnnotationLabel
s 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 ofAnnotationLabel
s for a specific group.- Parameters:
key
- the group key.- Returns:
- a collection of
AnnotationLabel
s belonging to the specified group.
-