onbon.bx06.area
Enum DateStyle

java.lang.Object
  extended by java.lang.Enum<DateStyle>
      extended by onbon.bx06.area.DateStyle
All Implemented Interfaces:
Serializable, Comparable<DateStyle>

public enum DateStyle
extends Enum<DateStyle>

日期样式。

Author:
ONBON
See Also:
DateTimeBxArea

Enum Constant Summary
DD_MM_1
          日期格式:DD-MM。
DD_MM_YYYY_1
          日期格式:DD-MM-YYYY。
DD_MM_YYYY_2
          日期格式:DD/MM/YYYY。
LUNAR
          农历。
MM_DD_1
          日期格式:MM-DD。
MM_DD_2
          日期格式:MM/DD。
MM_DD_3
          日期格式:MM月DD日。
YYYY_MM_DD_1
          日期格式:YYYY-MM-DD。
YYYY_MM_DD_2
          日期格式:YYYY/MM/DD。
YYYY_MM_DD_3
          日期格式:YYYY年MM月DD日。
 
Field Summary
 String name
           
 
Method Summary
 String toString()
           
static DateStyle valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DateStyle[] 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, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

YYYY_MM_DD_1

public static final DateStyle YYYY_MM_DD_1
日期格式:YYYY-MM-DD。


YYYY_MM_DD_2

public static final DateStyle YYYY_MM_DD_2
日期格式:YYYY/MM/DD。


YYYY_MM_DD_3

public static final DateStyle YYYY_MM_DD_3
日期格式:YYYY年MM月DD日。


DD_MM_YYYY_1

public static final DateStyle DD_MM_YYYY_1
日期格式:DD-MM-YYYY。


DD_MM_YYYY_2

public static final DateStyle DD_MM_YYYY_2
日期格式:DD/MM/YYYY。


MM_DD_1

public static final DateStyle MM_DD_1
日期格式:MM-DD。


MM_DD_2

public static final DateStyle MM_DD_2
日期格式:MM/DD。


MM_DD_3

public static final DateStyle MM_DD_3
日期格式:MM月DD日。


DD_MM_1

public static final DateStyle DD_MM_1
日期格式:DD-MM。


LUNAR

public static final DateStyle LUNAR
农历。

Field Detail

name

public final String name
Method Detail

values

public static DateStyle[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (DateStyle c : DateStyle.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static DateStyle valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

toString

public String toString()
Overrides:
toString in class Enum<DateStyle>


Copyright © 2020 onbon. All rights reserved.