public interface Type extends Key
| Modifier and Type | Method and Description |
|---|---|
static <T extends Type> |
checkAndGetIfValid(T type)
Checks if type passed as argument is not
null and its scale type is not null as well.If not, throw a IllegalArgumentException, otherwise it returns the key. |
static void |
checkIfValid(Type type)
Checks if type passed as argument is not
null and its scale type is not null as well.If not, throw a IllegalArgumentException. |
static boolean |
isValid(Type type)
Returns
true if type passed as argument is not null and its scale type is not null as well. |
ScaleType |
scaleType()
Returns the scale type of the chart.
|
checkIfValid, compare, create, equals, getKeyByValue, getKeyByValue, hasKeyByValue, isValid, valuestatic boolean isValid(Type type)
true if type passed as argument is not null and its scale type is not null as well.type - type to be checkedtrue if type passed as argument is not null and its scale type is not null as well.static void checkIfValid(Type type)
null and its scale type is not null as well.IllegalArgumentException.type - type to be checkedstatic <T extends Type> T checkAndGetIfValid(T type)
null and its scale type is not null as well.IllegalArgumentException, otherwise it returns the key.checkAndGetIfValid in interface KeyT - type of chart typetype - type to be checkedScaleType scaleType()