org.jmythapi.protocol.response.impl
Class AVersionableEnumGroup<E extends Enum<E> & IVersionableValue>

java.lang.Object
  extended by java.lang.Number
      extended by org.jmythapi.protocol.response.impl.AGroup<E>
          extended by org.jmythapi.protocol.response.impl.AEnumGroup<E>
              extended by org.jmythapi.protocol.response.impl.AVersionableEnumGroup<E>
All Implemented Interfaces:
Serializable, Cloneable, Formattable, IVersionable, IEnumGroup<E>, IGroup<E>
Direct Known Subclasses:
ProgramRecordingStatus

public abstract class AVersionableEnumGroup<E extends Enum<E> & IVersionableValue>
extends AEnumGroup<E>
implements IVersionable

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jmythapi.protocol.response.impl.AGroup
groupClass, logger, longValue, protoVersion
 
Constructor Summary
AVersionableEnumGroup(Class<E> enumClass, ProtocolVersion protoVersion, long enumValue)
           
 
Method Summary
 E getEnum()
          Gets the current value as enum.
 
Methods inherited from class org.jmythapi.protocol.response.impl.AEnumGroup
getEnumValue, hasEnum, hasEnum, toString, valueOf
 
Methods inherited from class org.jmythapi.protocol.response.impl.AGroup
clone, createObject, doubleValue, equals, floatValue, formatTo, getGroupClass, getVersionNr, hashCode, intValue, longValue
 
Methods inherited from class java.lang.Number
byteValue, shortValue
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jmythapi.IVersionable
getVersionNr
 
Methods inherited from interface org.jmythapi.protocol.response.IGroup
getGroupClass, longValue
 

Constructor Detail

AVersionableEnumGroup

public AVersionableEnumGroup(Class<E> enumClass,
                             ProtocolVersion protoVersion,
                             long enumValue)
Method Detail

getEnum

public E getEnum()
Description copied from interface: IEnumGroup
Gets the current value as enum.

Specified by:
getEnum in interface IEnumGroup<E extends Enum<E> & IVersionableValue>
Overrides:
getEnum in class AEnumGroup<E extends Enum<E> & IVersionableValue>
Returns:
the current enum value


Copyright © 2008-2013. All Rights Reserved.