Interface LabelId
-
- All Superinterfaces:
Key
,PropertyKey
public interface LabelId extends PropertyKey
Represents the label id of a label configuration object in theLabelsPlugin.ID
plugin.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
Static Methods Modifier and Type Method Description static void
checkIfValid(LabelId id)
Checks if id passed as argument is notnull
and its value is notnull
as well and could be a valid label configuration object id.
If not, throw aIllegalArgumentException
.static LabelId
create(String id)
Returns a key instance by its string value.static boolean
isValid(LabelId id)
Returnstrue
if id passed as argument is notnull
and its value is notnull
as 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)
Returnstrue
if id passed as argument is notnull
and its value is notnull
as well and could be a valid label configuration object id.- Parameters:
id
- label configuration object id to be checked- Returns:
true
if id passed as argument is notnull
and its value is notnull
as well and could be a valid label configuration object id.
-
checkIfValid
static void checkIfValid(LabelId id)
Checks if id passed as argument is notnull
and its value is notnull
as well and could be a valid label configuration object id.
If not, throw aIllegalArgumentException
.- Parameters:
id
- label configuration object id to be checked
-
-