org.apache.directory.server.dns.util
Class ReverseEnumMap<K,E extends Enum<E> & EnumConverter<K>>
java.lang.Object
org.apache.directory.server.dns.util.ReverseEnumMap<K,E>
- Type Parameters:
K - E -
public class ReverseEnumMap<K,E extends Enum<E> & EnumConverter<K>>
- extends Object
A map to easily get the actual Enum instance from it's value as seen in the
The JavaSpecialists newsletter.
- Author:
- Apache Directory Project
|
Method Summary |
E |
get(K value)
Return the enum given an ordinal value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReverseEnumMap
public ReverseEnumMap(Class<E> enumType)
- Creates a new instance of ReverseEnumMap.
- Parameters:
enumType -
get
public E get(K value)
- Return the enum given an ordinal value.
- Parameters:
value -
- Returns:
- The enum.
Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.