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

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • 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 boolean check​(java.lang.String val)
    文字列が日付範囲かチェックします。
    java.sql.Date fromDate()
    日付範囲の開始日付を返します。
    java.sql.Timestamp fromTimestamp()
    日付範囲の開始日時を返します。
    java.lang.String getDisplayLabel()
    表示ラベルを取得します。
    java.sql.Date toDate()
    日付範囲の終了日付を返します。
    java.sql.Timestamp toTimestamp()
    日付範囲の終了日時を返します。
    static DateRange valueOf​(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.

    Methods inherited from class java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

  • Method Details

    • values

      public static DateRange[] 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

      public static DateRange valueOf​(java.lang.String name)
      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 name
      java.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:
      日付範囲か