IEra Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |
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 |
Finalized() |
Called when the instance has been finalized. (Inherited from IJavaPeerable) |
Get(ITemporalField) |
Gets the value of the specified field as an |
GetDisplayName(TextStyle, Locale) |
Gets the textual representation of this era. |
GetLong(ITemporalField) |
Gets the value of the specified field as a |
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 |
SetJniManagedPeerState(JniManagedPeerStates) | (Inherited from IJavaPeerable) |
SetPeerReference(JniObjectReference) |
Set the value returned by |
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 |
ITemporalAccessor.GetLong(ITemporalField) |
Gets the value of the specified field from this era as a |
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) |