Package cdc.issues

Interface Labels

All Known Implementing Classes:
LabelsImpl

public interface Labels
Set of labels.
  • Field Details

    • NO_LABELS

      static final Labels NO_LABELS
  • Method Details

    • get

      Set<String> get()
      Returns:
      The set of labels.
    • getSorted

      default List<String> getSorted()
      Returns:
      The sorted labels.
    • isEmpty

      default boolean isEmpty()
    • add

      default Labels add(String label)
    • remove

      default Labels remove(String label)
    • isValidLabel

      static boolean isValidLabel(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 character
      Parameters:
      label - The label.
      Returns:
      true if label is a valid label.
    • of

      static Labels of(Collection<String> labels)
    • of

      static Labels of(String... labels)