public enum HijrahEra extends Enum<HijrahEra> implements Era
迁徙的日历系统,只有一个时代覆盖预期年大于零。
不要使用ordinal()
获得HijrahEra
的数字表示法。使用getValue()
相反。
Enum Constant and Description |
---|
AH
对于当前时代的单实例,' Anno Hegirae ',其数值1。
|
Modifier and Type | Method and Description |
---|---|
int |
getValue()
获取数字时代
int 价值。
|
static HijrahEra |
of(int hijrahEra)
获得
HijrahEra 实例从一个
int 价值。
|
ValueRange |
range(TemporalField field)
获取指定字段的有效值的范围。
|
static HijrahEra |
valueOf(String name)
返回此类型具有指定名称的枚举常量。
|
static HijrahEra[] |
values()
返回一个数组包含该枚举类型的常量,它们的顺序声明。
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
adjustInto, get, getDisplayName, getLong, isSupported, query
public static final HijrahEra AH
public static HijrahEra[] values()
对于(HijrahEra C:HijrahEra。values()) 系统,println(C);
public static HijrahEra valueOf(String name)
name
-定要返回的枚举的名称。
IllegalArgumentException
-如果这个枚举类型,也没有固定的具有指定名称
NullPointerException
-如果参数为空
public static HijrahEra of(int hijrahEra)
HijrahEra
实例从一个
int
价值。
当前的时代,这是唯一被接受的价值,有价值的1
hijrahEra
时代的代表,只有1的人支持
DateTimeException
-如果值是无效的
public ValueRange range(TemporalField field)
该范围对象表示字段的最小值和最大有效值。这个时代是用来提高返回范围的准确性。如果它是不可能返回的范围,因为字段不支持或其他一些原因,抛出一个异常。
如果该字段是ChronoField
然后查询执行。的ERA
退货范围。所有其他ChronoField
实例将抛出一个UnsupportedTemporalTypeException
。
如果该字段是不是ChronoField
,然后通过调用作为参数传递this
TemporalField.rangeRefinedBy(TemporalAccessor)
得到此方法的结果。是否可以得到范围是由字段确定的。
的ERA
字段返回一个有效的Hijrah时代的范围。
range
接口
Era
range
接口
TemporalAccessor
field
-现场查询范围,不为空
DateTimeException
如果不能得到的领域范围
UnsupportedTemporalTypeException
如果单位不支持
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.