Duration.Multiply Method

Definition

Overloads

Multiply(BigDecimal)

Computes a new duration whose value is <code>factor</code> times longer than the value of this duration.

Multiply(Int32)

Computes a new duration whose value is <code>factor</code> times longer than the value of this duration.

Multiply(BigDecimal)

Computes a new duration whose value is <code>factor</code> times longer than the value of this duration.

[Android.Runtime.Register("multiply", "(Ljava/math/BigDecimal;)Ljavax/xml/datatype/Duration;", "GetMultiply_Ljava_math_BigDecimal_Handler")]
public abstract Javax.Xml.Datatype.Duration? Multiply (Java.Math.BigDecimal? factor);
[<Android.Runtime.Register("multiply", "(Ljava/math/BigDecimal;)Ljavax/xml/datatype/Duration;", "GetMultiply_Ljava_math_BigDecimal_Handler")>]
abstract member Multiply : Java.Math.BigDecimal -> Javax.Xml.Datatype.Duration

Parameters

factor
BigDecimal

to multiply by

Returns

Duration

returns a non-null valid <code>Duration</code> object

Attributes

Exceptions

if operation produces fraction in the months field.

if the factor parameter is null.

Remarks

Java documentation for javax.xml.datatype.Duration.multiply(java.math.BigDecimal).

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

Multiply(Int32)

Computes a new duration whose value is <code>factor</code> times longer than the value of this duration.

[Android.Runtime.Register("multiply", "(I)Ljavax/xml/datatype/Duration;", "GetMultiply_IHandler")]
public virtual Javax.Xml.Datatype.Duration? Multiply (int factor);
[<Android.Runtime.Register("multiply", "(I)Ljavax/xml/datatype/Duration;", "GetMultiply_IHandler")>]
abstract member Multiply : int -> Javax.Xml.Datatype.Duration
override this.Multiply : int -> Javax.Xml.Datatype.Duration

Parameters

factor
Int32

Factor times longer of new <code>Duration</code> to create.

Returns

Duration

New <code>Duration</code> that is <code>factor</code>times longer than this <code>Duration</code>.

Attributes

Remarks

Java documentation for javax.xml.datatype.Duration.multiply(int).

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.

See also

Applies to