public class CEnumValue extends Object implements PEnumValue<CEnumValue>, CAnnotatedDescriptor
| Modifier and Type | Class and Description |
|---|---|
static class |
CEnumValue.Builder |
| Constructor and Description |
|---|
CEnumValue(String comment,
int value,
String name,
PEnumDescriptor<CEnumValue> type,
Map<String,String> annotations) |
| Modifier and Type | Method and Description |
|---|---|
int |
asInteger() |
String |
asString() |
int |
compareTo(CEnumValue other) |
PEnumDescriptor<CEnumValue> |
descriptor() |
boolean |
equals(Object o) |
Set<String> |
getAnnotations()
Get set of available annotations.
|
String |
getAnnotationValue(String name)
Get the given annotation value.
|
String |
getDocumentation()
The type comment is the last block of comment written before the type
declaration.
|
boolean |
hasAnnotation(String name)
Get the given annotation value.
|
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetId, getName, getValuegetAnnotationValue, hasAnnotationpublic String getDocumentation()
CAnnotatedDescriptorgetDocumentation in interface CAnnotatedDescriptorpublic int asInteger()
asInteger in interface net.morimekta.util.Numeric@Nonnull public String asString()
asString in interface net.morimekta.util.Stringable@Nonnull public Set<String> getAnnotations()
CAnnotatedDescriptorgetAnnotations in interface CAnnotatedDescriptorpublic boolean hasAnnotation(@Nonnull String name)
CAnnotatedDescriptorhasAnnotation in interface CAnnotatedDescriptorname - Name of annotation.public String getAnnotationValue(@Nonnull String name)
CAnnotatedDescriptorgetAnnotationValue in interface CAnnotatedDescriptorname - Name of annotation.@Nonnull public PEnumDescriptor<CEnumValue> descriptor()
descriptor in interface PEnumValue<CEnumValue>descriptor in interface PValue<CEnumValue>public int compareTo(@Nonnull CEnumValue other)
compareTo in interface Comparable<CEnumValue>Copyright © 2015–2018 morimekta.net. All rights reserved.