Skip to main content
Reference

Weight SFO

Properties

FieldTypeComment/Sample
uomstring
value[BigDecimal](./bigdecimal-sfo.md)

Methods

MethodSignatureComments/Sample
addWeight add(Weight w)
compareTointeger compareTo(Weight w)
divideWeight divide([BigDecimal](./bigdecimal-sfo.md) num, integer scale, integer roundingMode)
getInUOMWeight getInUOM(string uom)
getValueInUOM[BigDecimal](./bigdecimal-sfo.md) getValueInUOM(string uom)
greaterThanboolean greaterThan(Weight w)
isNegativeboolean isNegative()
isNonZeroboolean isNonZero()
isPositiveboolean isPositive()
isZeroboolean isZero()
lessThanboolean lessThan(Weight w)
multiplyWeight multiply(integer num)
multiplyWeight multiply([BigDecimal](./bigdecimal-sfo.md) num)
subtractWeight subtract(Weight w)

See Also

Was this page helpful?