ITemporalAmount.Units Property

Definition

Gets the list of units that make up this amount.

public System.Collections.Generic.IList<Java.Time.Temporal.ITemporalUnit>? Units { [Android.Runtime.Register("getUnits", "()Ljava/util/List;", "GetGetUnitsHandler:Java.Time.Temporal.ITemporalAmountInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)] get; }
[<get: Android.Runtime.Register("getUnits", "()Ljava/util/List;", "GetGetUnitsHandler:Java.Time.Temporal.ITemporalAmountInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
member this.Units : System.Collections.Generic.IList<Java.Time.Temporal.ITemporalUnit>

Property Value

An immutable list of the units that make up this amount, in order from largest to smallest.

Attributes

Remarks

Gets the list of units that make up this amount.

An amount is represented by a list of TemporalUnit values and a long value for each unit. The list is immutable, contains no duplicate units, and is ordered from largest to smallest. The units govern how the amount can be added to and subtracted from a temporal object.

Java documentation for java.time.temporal.TemporalAmount.getUnits().

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.

Applies to