@Immutable public class ThriftEnumMetadata<T extends Enum<T>> extends Object
| Constructor and Description |
|---|
ThriftEnumMetadata(String enumName,
Class<T> enumClass) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Map<T,Integer> |
getByEnumConstant() |
Map<Integer,T> |
getByEnumValue() |
com.google.common.collect.ImmutableList<String> |
getDocumentation() |
Map<T,com.google.common.collect.ImmutableList<String>> |
getElementsDocumentation() |
Class<T> |
getEnumClass() |
String |
getEnumName() |
boolean |
hasExplicitThriftValue() |
int |
hashCode() |
String |
toString() |
public ThriftEnumMetadata(String enumName, Class<T> enumClass) throws RuntimeException
RuntimeExceptionpublic String getEnumName()
public boolean hasExplicitThriftValue()
public com.google.common.collect.ImmutableList<String> getDocumentation()
public Map<T,com.google.common.collect.ImmutableList<String>> getElementsDocumentation()
Copyright © 2012–2014 Facebook, Inc.. All rights reserved.