Udostępnij za pośrednictwem


ITemporalField Interface

Definition

A field of date-time, such as month-of-year or minute-of-hour.

[Android.Runtime.Register("java/time/temporal/TemporalField", "", "Java.Time.Temporal.ITemporalFieldInvoker", ApiSince=26)]
public interface ITemporalField : Android.Runtime.IJavaObject, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("java/time/temporal/TemporalField", "", "Java.Time.Temporal.ITemporalFieldInvoker", ApiSince=26)>]
type ITemporalField = interface
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Derived
Attributes
Implements

Remarks

A field of date-time, such as month-of-year or minute-of-hour.

Date and time is expressed using fields which partition the time-line into something meaningful for humans. Implementations of this interface represent those fields.

The most commonly used units are defined in ChronoField. Further fields are supplied in IsoFields, WeekFields and JulianFields. Fields can also be written by application code by implementing this interface.

The field works using double dispatch. Client code calls methods on a date-time like LocalDateTime which check if the field is a ChronoField. If it is, then the date-time must handle it. Otherwise, the method call is re-dispatched to the matching method in this interface.

Added in 1.8.

Java documentation for java.time.temporal.TemporalField.

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

BaseUnit
Handle

Gets the JNI value of the underlying Android object.

(Inherited from IJavaObject)
IsDateBased
IsTimeBased
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)
RangeUnit

Methods

AdjustInto(Object, Int64)

Returns a copy of the specified temporal object with the value of this field set.

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)
GetDisplayName(Locale)

Gets the display name for the field in the requested locale.

GetFrom(ITemporalAccessor)

Gets the value of this field from the specified temporal object.

IsSupportedBy(ITemporalAccessor)

Checks if this field is supported by the temporal object.

Range()

Gets the range of valid values for the field.

RangeRefinedBy(ITemporalAccessor)

Get the range of valid values for this field using the temporal object to refine the result.

Resolve(IDictionary<ITemporalField,Long>, ITemporalAccessor, ResolverStyle)

Resolves this field to provide a simpler alternative or a date.

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)
ToString()

Gets a descriptive name for the field.

UnregisterFromRuntime()

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

(Inherited from IJavaPeerable)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to