Package cdc.issues
Interface Meta
- All Superinterfaces:
Comparable<Meta>,NameValue
- All Known Implementing Classes:
MetaImpl
A Meta is a (name, value) pair.
-
Method Summary
Static MethodsMethods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
of
- Parameters:
name- The name.value- The value.- Returns:
- A new Meta instance from
nameandvalue. - Throws:
IllegalArgumentException- Whennameis not valid.
-
isValidName
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:
trueiflabelis a valid label.
-