Package org.apache.thrift.partial
Class EnumCache
java.lang.Object
org.apache.thrift.partial.EnumCache
Provides a memoized way to lookup an enum by its value.
This class is used internally by TDeserializer. It is not intended to be used
separately on its own.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
EnumCache
public EnumCache()
-
-
Method Details
-
get
Gets an instance of the enum typeenumClasscorresponding to the givenvalue.- Parameters:
enumClass- class of the enum to be returned.value- value returned bygetValue().
-