Interface
interface DurationExtension
public interface DurationExtension {
operator func *(r: Duration): Duration
}
Description: Returns a multiplication with the new Duration instance as the product when extending the Duration instance as a right operand.
operator func *(Duration)
operator func *(r: Duration): Duration
Description: Implements a multiplication of a T
instance (T
is a type for implementing the DurationExtension interface) and a Duration instance, that is, T * Duration.
Parameters:
- r: Duration: right operand of the multiplication
Returns:
- Duration: product of the
T
instance multiplied byr
Throws:
- ArithmeticException: If the result of the multiplication exceeds the range specified by Duration, this exception is thrown.
extend Float64 <: DurationExtension
extend Float64 <: DurationExtension
Description: Extends the multiplication with a Float64 instance as the left operand and a Duration instance as the right operand.
Parent Type:
operator func *(Duration)
public operator func *(r: Duration): Duration
Description: Implements a multiplication of a Float64 instance and a Duration instance, that is, Float64 * Duration.
Parameters:
Returns:
Throws:
- ArithmeticException: If the result of the multiplication exceeds the range specified by Duration, this exception is thrown.
extend Int64 <: DurationExtension
extend Int64 <: DurationExtension
Description: Extends the multiplication with an Int64 instance as the left operand and a Duration instance as the right operand.
Parent Type:
operator func *(Duration)
public operator func *(r: Duration): Duration
Description: Implements a multiplication of an Int64 instance and a Duration instance, that is, Int64 * Duration.
For example, if 2 * Duration.second is returned, it indicates a Duration instance with the time interval of two seconds.
Parameters:
- r: Duration: right operand of the multiplication
Returns:
Throws:
- ArithmeticException: If the result of the multiplication exceeds the range specified by Duration, this exception is thrown.