다음을 통해 공유


Duration.IsNegative Property

Definition

Checks if this duration is negative, excluding zero.

public bool IsNegative { [Android.Runtime.Register("isNegative", "()Z", "", ApiSince=26)] get; }
[<get: Android.Runtime.Register("isNegative", "()Z", "", ApiSince=26)>]
member this.IsNegative : bool

Property Value

true if this duration has a total length less than zero

Attributes

Remarks

Checks if this duration is negative, excluding zero.

A Duration represents a directed distance between two points on the time-line and can therefore be positive, zero or negative. This method checks whether the length is less than zero.

Java documentation for java.time.Duration.isNegative().

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