Duration.IsPositive Property

Definition

Checks if this duration is positive, excluding zero.

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

Property Value

true if this duration has a total length greater than zero

Attributes

Remarks

Checks if this duration is positive, 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 greater than zero.

Added in 18.

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

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