public enum ThaiBuddhistEra extends Enum<ThaiBuddhistEra> implements Era
泰国佛教历法系统有两个时代。当前时代,从1年起,被称为“佛教”时代。所有的前几年,在预期数或一个大的时代算今年早些时候零或者是“前佛教时代。
| year-of-era | era | proleptic-year | ISO proleptic-year |
|---|---|---|---|
| 2 | BE | 2 | -542 |
| 1 | BE | 1 | -543 |
| 1 | BEFORE_BE | 0 | -544 |
| 2 | BEFORE_BE | -1 | -545 |
不要使用ordinal()获得ThaiBuddhistEra数字表示使用getValue()代替。
| Enum Constant and Description |
|---|
BE
当前时代的“佛教时代”的单例实例,它具有数字值1。
|
BEFORE_BE
在前一个时代的例子,“前佛教时代”,其中有数字值0。
|
| Modifier and Type | Method and Description |
|---|---|
int |
getValue()
获取数字时代
int价值。
|
static ThaiBuddhistEra |
of(int thaiBuddhistEra)
获得
ThaiBuddhistEra实例从一个
int价值。
|
static ThaiBuddhistEra |
valueOf(String name)
返回此类型具有指定名称的枚举常量。
|
static ThaiBuddhistEra[] |
values()
返回一个数组包含该枚举类型的常量,它们的顺序声明。
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfadjustInto, get, getDisplayName, getLong, isSupported, query, rangepublic static final ThaiBuddhistEra BEFORE_BE
public static final ThaiBuddhistEra BE
public static ThaiBuddhistEra[] values()
对于(thaibuddhistera C:thaibuddhistera。values()) 系统,println(C);
public static ThaiBuddhistEra valueOf(String name)
name -定要返回的枚举的名称。
IllegalArgumentException -如果这个枚举类型,也没有固定的具有指定名称
NullPointerException -如果参数为空
public static ThaiBuddhistEra of(int thaiBuddhistEra)
ThaiBuddhistEra实例从一个
int价值。
ThaiBuddhistEra是代表before_be /泰国佛教时期的枚举是。本厂允许枚举是从int值。
thaiBuddhistEra时代的代表,从0到1
DateTimeException如果时代是无效的
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.