onbon.bx06.area.unit
Enum YearBxUnit.YearBxUnitMode

java.lang.Object
  extended by java.lang.Enum<YearBxUnit.YearBxUnitMode>
      extended by onbon.bx06.area.unit.YearBxUnit.YearBxUnitMode
All Implemented Interfaces:
Serializable, Comparable<YearBxUnit.YearBxUnitMode>
Enclosing class:
YearBxUnit

public static enum YearBxUnit.YearBxUnitMode
extends Enum<YearBxUnit.YearBxUnitMode>

显示内容类型。

Author:
ONBON

Enum Constant Summary
CHINESE_ERA
          天干地支。
CHINESE_ZODIAC
          十二生肖。
Y2
          四位西元年。
Y4
          两位西元年。
 
Method Summary
 String toString()
           
static YearBxUnit.YearBxUnitMode typeof(byte code)
           
static YearBxUnit.YearBxUnitMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static YearBxUnit.YearBxUnitMode[] 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

Y4

public static final YearBxUnit.YearBxUnitMode Y4
两位西元年。


Y2

public static final YearBxUnit.YearBxUnitMode Y2
四位西元年。


CHINESE_ERA

public static final YearBxUnit.YearBxUnitMode CHINESE_ERA
天干地支。


CHINESE_ZODIAC

public static final YearBxUnit.YearBxUnitMode CHINESE_ZODIAC
十二生肖。

Method Detail

values

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

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

valueOf

public static YearBxUnit.YearBxUnitMode 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<YearBxUnit.YearBxUnitMode>

typeof

public static YearBxUnit.YearBxUnitMode typeof(byte code)


Copyright © 2020 onbon. All rights reserved.