Package org.iplass.mtp.view.util
Enum DateRange
java.lang.Object
java.lang.Enum<DateRange>
org.iplass.mtp.view.util.DateRange
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<DateRange>,java.lang.constant.Constable
public enum DateRange extends java.lang.Enum<DateRange>
日付の範囲
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description LAST_180_DAYS過去180日間LAST_30_DAYS過去30日間LAST_7_DAYS過去7日間LAST_90_DAYS過去90日間LAST_MONTH先月LAST_WEEK先週NEXT_180_DAYS翌180日間NEXT_30_DAYS翌30日間NEXT_7_DAYS翌7日間NEXT_90_DAYS翌90日間NEXT_MONTH翌月NEXT_WEEK来週THIS_MONTH今月THIS_WEEK今週TODAY今日TOMORROW明日YESTERDAY昨日 -
Method Summary
Modifier and Type Method Description static booleancheck(java.lang.String val)文字列が日付範囲かチェックします。java.sql.DatefromDate()日付範囲の開始日付を返します。java.sql.TimestampfromTimestamp()日付範囲の開始日時を返します。java.lang.StringgetDisplayLabel()表示ラベルを取得します。java.sql.DatetoDate()日付範囲の終了日付を返します。java.sql.TimestamptoTimestamp()日付範囲の終了日時を返します。static DateRangevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static DateRange[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
LAST_MONTH
先月 -
THIS_MONTH
今月 -
NEXT_MONTH
翌月 -
LAST_WEEK
先週 -
THIS_WEEK
今週 -
NEXT_WEEK
来週 -
YESTERDAY
昨日 -
TODAY
今日 -
TOMORROW
明日 -
LAST_7_DAYS
過去7日間 -
LAST_30_DAYS
過去30日間 -
LAST_90_DAYS
過去90日間 -
LAST_180_DAYS
過去180日間 -
NEXT_7_DAYS
翌7日間 -
NEXT_30_DAYS
翌30日間 -
NEXT_90_DAYS
翌90日間 -
NEXT_180_DAYS
翌180日間
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
fromTimestamp
public java.sql.Timestamp fromTimestamp()日付範囲の開始日時を返します。- Returns:
- 日付範囲の開始日時
-
fromDate
public java.sql.Date fromDate()日付範囲の開始日付を返します。- Returns:
- 日付範囲の開始日付
-
toTimestamp
public java.sql.Timestamp toTimestamp()日付範囲の終了日時を返します。- Returns:
- 日付範囲の終了日時
-
toDate
public java.sql.Date toDate()日付範囲の終了日付を返します。- Returns:
- 日付範囲の終了日付
-
getDisplayLabel
public java.lang.String getDisplayLabel()表示ラベルを取得します。- Returns:
- 表示ラベル
-
check
public static boolean check(java.lang.String val)文字列が日付範囲かチェックします。- Parameters:
val- 文字列- Returns:
- 日付範囲か
-