|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IEnumGroup<E extends Enum<E>>
An enum group.
This interface represents a enum group. The value of a enum group is a single integer value,
which can be accessed using IGroup.longValue()
. How this value can be interpreted, depends on the
available constants of the enumeration group. Depending on the current protocol-version of the group,
different constants may be available with different types.
In an enum group only a single constant can be active at the same time.
See IGroup.longValue()
for the current value of the group.
See IGroup.getGroupClass()
for the enum class defining all possible constants.
To test if a specific constant is currently active, hasEnum(Enum)
can be used.
// getting the enum group IProgramRecordingStatus recStatus = recording.getRecordingStatus(); // testing for an active enum if(recStatus.hasEnum(Status.RECORDING)) { // do something }
Method Summary | |
---|---|
E |
getEnum()
Gets the current value as enum. |
boolean |
hasEnum(E... props)
|
boolean |
hasEnum(E prop)
|
Methods inherited from interface org.jmythapi.protocol.response.IGroup |
---|
getGroupClass, longValue |
Methods inherited from interface org.jmythapi.IVersionable |
---|
getVersionNr |
Method Detail |
---|
E getEnum()
boolean hasEnum(E prop)
boolean hasEnum(E... props)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |