|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Unit>
com.dukascopy.api.Unit
public enum Unit
Defines time units
Enum Constant Summary | |
---|---|
Day
|
|
Hour
|
|
Millisecond
|
|
Minute
|
|
Month
|
|
Second
|
|
Week
|
|
Year
|
Method Summary | |
---|---|
String |
getCompactDescription()
Returns compact description |
long |
getInterval()
Returns interval of time unit in milliseconds |
String |
getLongDescription()
Returns long description |
String |
getShortDescription()
Returns short description, usually one or two characters long |
static Unit |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Unit[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, 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 Unit Millisecond
public static final Unit Second
public static final Unit Minute
public static final Unit Hour
public static final Unit Day
public static final Unit Week
public static final Unit Month
public static final Unit Year
Method Detail |
---|
public static Unit[] values()
for (Unit c : Unit.values()) System.out.println(c);
public static Unit valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic final long getInterval()
public String getShortDescription()
public String getCompactDescription()
public String getLongDescription()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |