Weight SFO

Properties

Field

Type

Comment/Sample

uom

string

 

value

BigDecimal

 

Methods

Method

Signature

Comments/Sample

add

Weight add(Weight w)

 

compareTo

integer compareTo(Weight w)

 

divide

Weight divide(BigDecimal num, integer scale, integer roundingMode)

 

getInUOM

Weight getInUOM(string uom)

 

getValueInUOM

BigDecimal getValueInUOM(string uom)

 

greaterThan

boolean greaterThan(Weight w)

 

isNegative

boolean isNegative()

 

isNonZero

boolean isNonZero()

 

isPositive

boolean isPositive()

 

isZero

boolean isZero()

 

lessThan

boolean lessThan(Weight w)

 

multiply

Weight multiply(integer num)

 

multiply

Weight multiply(BigDecimal num)

 

subtract

Weight subtract(Weight w)

 

See Also