THRIFT-949. java: Modify the TEnum interface so it defines a method similar to findBy...
authorBryan Duxbury <bryanduxbury@apache.org>
Wed, 27 Oct 2010 17:54:10 +0000 (17:54 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Wed, 27 Oct 2010 17:54:10 +0000 (17:54 +0000)
commita6ce16470dda427380b41e930ed59e028bdb7615
tree3d8f08958037bab94ed2f377efff03fcd522a44a
parent213a66479872e0ccf828f8f2675d1546cdff0a18
THRIFT-949. java: Modify the TEnum interface so it defines a method similar to findByValue

This patch adds a new helper class that makes it easier to get instances of generic TEnum descendents by value.

Patch: Mathias Herberts

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1028051 13f79535-47bb-0310-9956-ffa450edef68
lib/java/src/org/apache/thrift/TEnumHelper.java [new file with mode: 0644]
lib/java/test/org/apache/thrift/TestTEnumHelper.java [new file with mode: 0644]