Package cdc.issues
Interface Labels
- All Known Implementing Classes:
LabelsImpl
public interface Labels
Set of labels.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault Labelsget()default booleanisEmpty()static booleanisValidLabel(String label) Returns true if a string is a valid label: It cannot be null It cannot be empty It cannot contain any space or control characterstatic Labelsstatic Labelsof(Collection<String> labels) default Labels
-
Field Details
-
NO_LABELS
-
-
Method Details
-
get
- Returns:
- The set of labels.
-
getSorted
- Returns:
- The sorted labels.
-
isEmpty
default boolean isEmpty() -
add
-
remove
-
isValidLabel
Returns true if a string is a valid label:- It cannot be null
- It cannot be empty
- It cannot contain any space or control character
- Parameters:
label- The label.- Returns:
trueiflabelis a valid label.
-
of
-
of
-