Data Request Broker
2-3-release

fr.gael.drb.value
Interface Arithmetic

All Superinterfaces:
Sumable
All Known Subinterfaces:
Numeric
All Known Implementing Classes:
BinaryInteger, Byte, DateTime, DayTimeDuration, Decimal, Double, Duration, Float, Int, Integer, Long, Short, UnsignedByte, UnsignedInt, UnsignedLong, UnsignedShort, YearMonthDuration

public interface Arithmetic
extends Sumable

Arithmetic expression evaluation.


Method Summary
 Value divide(Value x)
          Compute a division.
 Value modulus(Value x)
          Compute a modulus.
 Value multiply(Value x)
          Compute a multiplication.
 Value sub(Value x)
          Compute a substraction.
 Value unaryMinus()
          Compute an unary minus.
 
Methods inherited from interface fr.gael.drb.value.Sumable
add
 

Method Detail

unaryMinus

Value unaryMinus()
Compute an unary minus.

Returns:
The unary minus of the value.

sub

Value sub(Value x)
Compute a substraction.

Parameters:
x - another value.
Returns:
the difference between the two values.

multiply

Value multiply(Value x)
Compute a multiplication.

Parameters:
x - another value.
Returns:
the product of the two values.

divide

Value divide(Value x)
Compute a division.

Parameters:
x - another value.
Returns:
the ratio of the two values.

modulus

Value modulus(Value x)
Compute a modulus.

Parameters:
x - another value.
Returns:
the modulus of the values.

Data Request Broker - DRB API®
2-3-release

Copyright© 2001-2009 GAEL Consultant. All rights reserved. Use is subject to license terms .