Udostępnij za pośrednictwem


Duration.Negate Method

Definition

Returns a new Duration object whose value is -this.

[Android.Runtime.Register("negate", "()Ljavax/xml/datatype/Duration;", "GetNegateHandler")]
public abstract Javax.Xml.Datatype.Duration? Negate ();
[<Android.Runtime.Register("negate", "()Ljavax/xml/datatype/Duration;", "GetNegateHandler")>]
abstract member Negate : unit -> Javax.Xml.Datatype.Duration

Returns

always return a non-null valid Duration object.

Attributes

Remarks

Returns a new Duration object whose value is -this.

Since the Duration class is immutable, this method doesn't change the value of this object. It simply computes a new Duration object and returns it.

Java documentation for javax.xml.datatype.Duration.negate().

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