Interface LabelId
-
- All Superinterfaces:
Key,PropertyKey
public interface LabelId extends PropertyKey
Represents the label id of a label configuration object in theLabelsPlugin.IDplugin.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
Static Methods Modifier and Type Method Description static voidcheckIfValid(LabelId id)Checks if id passed as argument is notnulland its value is notnullas well and could be a valid label configuration object id.
If not, throw aIllegalArgumentException.static LabelIdcreate(String id)Returns a key instance by its string value.static booleanisValid(LabelId id)Returnstrueif id passed as argument is notnulland its value is notnullas well and could be a valid label configuration object id.
-
-
-
Method Detail
-
create
static LabelId create(String id)
Returns a key instance by its string value.- Parameters:
id- string value to use- Returns:
- new label configuration object id instance
-
isValid
static boolean isValid(LabelId id)
Returnstrueif id passed as argument is notnulland its value is notnullas well and could be a valid label configuration object id.- Parameters:
id- label configuration object id to be checked- Returns:
trueif id passed as argument is notnulland its value is notnullas well and could be a valid label configuration object id.
-
checkIfValid
static void checkIfValid(LabelId id)
Checks if id passed as argument is notnulland its value is notnullas well and could be a valid label configuration object id.
If not, throw aIllegalArgumentException.- Parameters:
id- label configuration object id to be checked
-
-