Package cdc.issues
Interface Param
- All Superinterfaces:
Comparable<Param>,NameValue
- All Known Implementing Classes:
ParamImpl
Definition of an effective parameter.
It is a (name, value) pair, where name can not be null.
- Author:
- Damien Carbonne
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic Param.Builderbuilder()Deprecated, for removal: This API element is subject to removal in a future version.Useof(String, String).static booleanisValidName(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 characterstatic ParamMethods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
of
- Parameters:
name- The name.value- The value.- Returns:
- A new Param 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.
-
builder
Deprecated, for removal: This API element is subject to removal in a future version.Useof(String, String).- Returns:
- A new
Param.BuilderofParam.
-
of(String, String).