Package cdc.issues

Interface Meta

All Superinterfaces:
Comparable<Meta>, NameValue
All Known Implementing Classes:
MetaImpl

public interface Meta extends NameValue, Comparable<Meta>
A Meta is a (name, value) pair.
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static boolean
    Returns true if a string is a valid name: It cannot be null It cannot be empty It cannot contain any space or control character
    static Meta
    of(String name, String value)
     

    Methods inherited from interface java.lang.Comparable

    compareTo

    Methods inherited from interface cdc.issues.NameValue

    getName, getValue
  • Method Details

    • of

      static Meta of(String name, String value)
      Parameters:
      name - The name.
      value - The value.
      Returns:
      A new Meta instance from name and value.
      Throws:
      IllegalArgumentException - When name is not valid.
    • isValidName

      static boolean isValidName(String name)
      Returns true if a string is a valid name:
      • It cannot be null
      • It cannot be empty
      • It cannot contain any space or control character
      Parameters:
      name - The name.
      Returns:
      true if label is a valid label.