public interface PEnumValue<T> extends PValue<T>, net.morimekta.util.Stringable, net.morimekta.util.Numeric
| Modifier and Type | Method and Description |
|---|---|
PEnumDescriptor |
descriptor() |
default int |
getId()
Method for getting the ID of the value that is a bit more accurate
when reading code than
Numeric.asInteger() |
default String |
getName()
Method for getting the name of the value that is a bit more accurate
when reading code than
Stringable.asString() |
default int |
getValue()
Deprecated.
Use
Numeric.asInteger() or getId() instead.
Will be removed in a future version, but kept for now as it is
too widely used to be removed immediately. |
compareTodefault int getId()
Numeric.asInteger()@Nonnull default String getName()
Stringable.asString()@Deprecated default int getValue()
Numeric.asInteger() or getId() instead.
Will be removed in a future version, but kept for now as it is
too widely used to be removed immediately.@Nonnull PEnumDescriptor descriptor()
descriptor in interface PValue<T>Copyright © 2015–2018 morimekta.net. All rights reserved.