public interface ScaleId extends PropertyKey
Modifier and Type | Method and Description |
---|---|
static ScaleId |
checkAndGetScaleID(String id,
ScaleId defaultValue)
Returns the ID of the scale checking the default ones,
DefaultScaleId . |
static void |
checkIfValid(ScaleId id)
Checks if scale id passed as argument is not
null and its value is not null as well and could be a valid scale id.If not, throw a IllegalArgumentException . |
static void |
checkIfValid(String id)
Checks if scale id passed as argument is not
null and its value is not null as well and could be a valid scale id.If not, throw a IllegalArgumentException . |
static ScaleId |
create(String id)
Returns a key instance by its string value.
|
AxisKind |
getAxisKind()
Returns the default axis kind for this default scale id.
|
static boolean |
isValid(ScaleId id)
Returns
true if scale id passed as argument is not null and its value is not null as well and could be a valid scale id. |
static boolean |
isValid(String id)
Returns
true if scale id passed as argument is not null and its value could be a valid scale id. |
checkIfValid, isValid
checkAndGetIfValid, checkIfValid, compare, equals, getKeyByValue, getKeyByValue, hasKeyByValue, isValid, value
static boolean isValid(String id)
true
if scale id passed as argument is not null
and its value could be a valid scale id.isValid
in interface PropertyKey
id
- scale id to be checkedtrue
if scale id passed as argument is not null
and its value could be a valid scale id.static boolean isValid(ScaleId id)
true
if scale id passed as argument is not null
and its value is not null
as well and could be a valid scale id.id
- scale id to be checkedtrue
if scale id passed as argument is not null
and its value is not null
as well and could be a valid scale id.static void checkIfValid(ScaleId id)
null
and its value is not null
as well and could be a valid scale id.IllegalArgumentException
.id
- scale id to be checkedstatic void checkIfValid(String id)
null
and its value is not null
as well and could be a valid scale id.IllegalArgumentException
.checkIfValid
in interface PropertyKey
id
- scale id as string to be checkedstatic ScaleId checkAndGetScaleID(String id, ScaleId defaultValue)
DefaultScaleId
.id
- scale id value stored in the a objectdefaultValue
- the default value if not existAxisKind getAxisKind()