onbon.bx06.area
Enum TimeStyle

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

public enum TimeStyle
extends Enum<TimeStyle>

时间样式。

Author:
ONBON
See Also:
DateTimeBxArea

Enum Constant Summary
AMPM_HH_MM
          时间格式:AMPM HH:MM。
HH_MM_1
          时间格式:HH:MM。
HH_MM_2
          时间格式:HH时MM分。
HH_MM_AMPM
          时间格式:HH:MM AMPM。
HH_MM_SS_1
          时间格式:HH:MM:SS。
HH_MM_SS_2
          时间格式:HH时MM分SS秒。
HH12_MM_1
          时间格式:HH:MM。
HH12_MM_2
          时间格式:HH时MM分。
HH12_MM_SS_1
          时间格式:HH:MM:SS。
HH12_MM_SS_2
          时间格式:HH时MM分SS秒。
 
Field Summary
 String name
           
 
Method Summary
 String toString()
           
static TimeStyle valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TimeStyle[] 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

HH_MM_SS_1

public static final TimeStyle HH_MM_SS_1
时间格式:HH:MM:SS。


HH_MM_SS_2

public static final TimeStyle HH_MM_SS_2
时间格式:HH时MM分SS秒。


HH12_MM_SS_1

public static final TimeStyle HH12_MM_SS_1
时间格式:HH:MM:SS。


HH12_MM_SS_2

public static final TimeStyle HH12_MM_SS_2
时间格式:HH时MM分SS秒。


HH_MM_1

public static final TimeStyle HH_MM_1
时间格式:HH:MM。


HH_MM_2

public static final TimeStyle HH_MM_2
时间格式:HH时MM分。


HH12_MM_1

public static final TimeStyle HH12_MM_1
时间格式:HH:MM。


HH12_MM_2

public static final TimeStyle HH12_MM_2
时间格式:HH时MM分。


AMPM_HH_MM

public static final TimeStyle AMPM_HH_MM
时间格式:AMPM HH:MM。


HH_MM_AMPM

public static final TimeStyle HH_MM_AMPM
时间格式:HH:MM AMPM。

Field Detail

name

public final String name
Method Detail

values

public static TimeStyle[] 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 (TimeStyle c : TimeStyle.values())
    System.out.println(c);

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

valueOf

public static TimeStyle 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<TimeStyle>


Copyright © 2020 onbon. All rights reserved.