|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<EventPeriod>
org.hd.d.pg2k.svrCore.vars.EventPeriod
public enum EventPeriod
An enumeration of the available event periods from (very) short to (very) long. The actual event interval in milliseconds is available from the period value, as are some subsidiary methods.
Our on-the-wire tunnel (inter-peer) protocol may depend on the value ordinals, so be very careful if altering this enum in any way.
| Enum Constant Summary | |
|---|---|
LONG
|
|
MEDIUM
|
|
SHORT
|
|
VLONG
|
|
VSHORT
|
|
| Field Summary | |
|---|---|
private int |
intervalMs
The interval for this event period in milliseconds; strictly positive. |
| Method Summary | |
|---|---|
int |
getIntervalMs()
Get the interval for this event period in milliseconds; strictly positive. |
long |
getIntervalNumber(long time)
Compute the interval number given a time in milliseconds within that interval. |
long |
getIntervalStartTime(long intervalNumber)
Get start time (ms) of specified interval number. |
static EventPeriod |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static EventPeriod[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final EventPeriod VSHORT
public static final EventPeriod SHORT
public static final EventPeriod MEDIUM
public static final EventPeriod LONG
public static final EventPeriod VLONG
| Field Detail |
|---|
private final int intervalMs
| Method Detail |
|---|
public static EventPeriod[] values()
for (EventPeriod c : EventPeriod.values()) System.out.println(c);
public static EventPeriod valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic final int getIntervalMs()
public final long getIntervalNumber(long time)
public final long getIntervalStartTime(long intervalNumber)
|
DHD Multimedia Gallery V1.60.69 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||