[]
        
立即试用
(Showing Draft Content)

TimePeriods

Enum Class TimePeriods

java.lang.Object
java.lang.Enum<TimePeriods>
com.grapecity.documents.excel.TimePeriods
All Implemented Interfaces:
Serializable, Comparable<TimePeriods>, Constable

public enum TimePeriods extends Enum<TimePeriods>
指定时间周期。
  • Enum Constant Details

    • Today

      public static final TimePeriods Today
      指定今天。
    • Yesterday

      public static final TimePeriods Yesterday
      指定昨天。
    • Last7Days

      public static final TimePeriods Last7Days
      指定最后7天。
    • ThisWeek

      public static final TimePeriods ThisWeek
      指定本周。
    • LastWeek

      public static final TimePeriods LastWeek
      指定上周。
    • LastMonth

      public static final TimePeriods LastMonth
      指定上个月。
    • Tomorrow

      public static final TimePeriods Tomorrow
      指定明天。
    • NextWeek

      public static final TimePeriods NextWeek
      指定下周。
    • NextMonth

      public static final TimePeriods NextMonth
      指定下个月。
    • ThisMonth

      public static final TimePeriods ThisMonth
      指定这个月。
  • Method Details

    • values

      public static TimePeriods[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TimePeriods valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null