Freigeben über


IEra Interface

Definition

An era of the time-line.

[Android.Runtime.Register("java/time/chrono/Era", "", "Java.Time.Chrono.IEraInvoker", ApiSince=26)]
public interface IEra : IDisposable, Java.Interop.IJavaPeerable, Java.Time.Temporal.ITemporalAccessor, Java.Time.Temporal.ITemporalAdjuster
[<Android.Runtime.Register("java/time/chrono/Era", "", "Java.Time.Chrono.IEraInvoker", ApiSince=26)>]
type IEra = interface
    interface ITemporalAccessor
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
    interface ITemporalAdjuster
Derived
Attributes
Implements

Remarks

An era of the time-line.

Most calendar systems have a single epoch dividing the time-line into two eras. However, some calendar systems, have multiple eras, such as one for the reign of each leader. In all cases, the era is conceptually the largest division of the time-line. Each chronology defines the Era's that are known Eras and a Chronology#eras Chronology.eras to get the valid eras.

For example, the Thai Buddhist calendar system divides time into two eras, before and after a single date. By contrast, the Japanese calendar system has one era for the reign of each Emperor.

Instances of Era may be compared using the == operator.

Added in 1.8.

Java documentation for java.time.chrono.Era.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Properties

Handle

Gets the JNI value of the underlying Android object.

(Inherited from IJavaObject)
JniIdentityHashCode

Returns the value of java.lang.System.identityHashCode() for the wrapped instance.

(Inherited from IJavaPeerable)
JniManagedPeerState

State of the managed peer.

(Inherited from IJavaPeerable)
JniPeerMembers

Member access and invocation support.

(Inherited from IJavaPeerable)
PeerReference

Returns a JniObjectReference of the wrapped Java object instance.

(Inherited from IJavaPeerable)
Value

Methods

AdjustInto(ITemporal)

Adjusts the specified temporal object.

(Inherited from ITemporalAdjuster)
Disposed()

Called when the instance has been disposed.

(Inherited from IJavaPeerable)
DisposeUnlessReferenced()

If there are no outstanding references to this instance, then calls Dispose(); otherwise, does nothing.

(Inherited from IJavaPeerable)
Finalized()

Called when the instance has been finalized.

(Inherited from IJavaPeerable)
Get(ITemporalField)

Gets the value of the specified field as an int.

(Inherited from ITemporalAccessor)
GetDisplayName(TextStyle, Locale)

Gets the textual representation of this era.

GetLong(ITemporalField)

Gets the value of the specified field as a long.

(Inherited from ITemporalAccessor)
IsSupported(ITemporalField)

Checks if the specified field is supported.

(Inherited from ITemporalAccessor)
Query(ITemporalQuery)

Queries this date-time.

(Inherited from ITemporalAccessor)
Range(ITemporalField)

Gets the range of valid values for the specified field.

(Inherited from ITemporalAccessor)
SetJniIdentityHashCode(Int32)

Set the value returned by JniIdentityHashCode.

(Inherited from IJavaPeerable)
SetJniManagedPeerState(JniManagedPeerStates) (Inherited from IJavaPeerable)
SetPeerReference(JniObjectReference)

Set the value returned by PeerReference.

(Inherited from IJavaPeerable)
UnregisterFromRuntime()

Unregister this instance so that the runtime will not return it from future Java.Interop.JniRuntime+JniValueManager.PeekValue invocations.

(Inherited from IJavaPeerable)

Explicit Interface Implementations

ITemporalAccessor.Get(ITemporalField)

Gets the value of the specified field from this era as an int.

ITemporalAccessor.GetLong(ITemporalField)

Gets the value of the specified field from this era as a long.

ITemporalAccessor.IsSupported(ITemporalField)

Checks if the specified field is supported.

ITemporalAccessor.Query(ITemporalQuery)

Queries this era using the specified query.

ITemporalAccessor.Range(ITemporalField)

Gets the range of valid values for the specified field.

ITemporalAdjuster.AdjustInto(ITemporal)

Adjusts the specified temporal object to have the same era as this object.

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to