Duration.Negate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.