|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | 列挙型定数 | フィールド | メソッド | 詳細: 列挙型定数 | フィールド | メソッド |
java.lang.Objectjava.lang.Enum<IntervalType>
jp.sf.orangesignal.trading.data.IntervalType
public enum IntervalType
足の単位を表す列挙型を提供します。
列挙型定数の概要 | |
---|---|
DAILY
日足を表します。 |
|
HOURLY
時足を表します。 |
|
MINUTELY
分足を表します。 |
|
MONTHLY
月足を表します。 |
|
WEEKLY
週足を表します。 |
メソッドの概要 | |
---|---|
abstract int |
getMaxPeriod()
この足単位の最大期間を返します。 |
static IntervalType |
valueOf(String name)
指定した名前を持つこの型の列挙型定数を返します。 |
static IntervalType[] |
values()
この列挙型の定数を含む配列を宣言されている順序で返します。 |
クラス java.lang.Enum から継承されたメソッド |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
クラス java.lang.Object から継承されたメソッド |
---|
getClass, notify, notifyAll, wait, wait, wait |
列挙型定数の詳細 |
---|
public static final IntervalType MINUTELY
分足を表します。
getMaxPeriod()
は常に 60
を返します。
public static final IntervalType HOURLY
時足を表します。
getMaxPeriod()
は常に 24
を返します。
public static final IntervalType DAILY
日足を表します。
getMaxPeriod()
は常に 365
を返します。
public static final IntervalType WEEKLY
週足を表します。
getMaxPeriod()
は常に 52
を返します。
public static final IntervalType MONTHLY
月足を表します。
getMaxPeriod()
は常に 12
を返します。
メソッドの詳細 |
---|
public static IntervalType[] values()
for (IntervalType c : IntervalType.values()) System.out.println(c);
public static IntervalType valueOf(String name)
name
- 返される列挙型定数の名前
IllegalArgumentException
- 指定された名前を持つ定数を
この列挙型が持っていない場合
NullPointerException
- 引数が null の場合public abstract int getMaxPeriod()
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | 列挙型定数 | フィールド | メソッド | 詳細: 列挙型定数 | フィールド | メソッド |