Package com.storedobject.core
Class Area
java.lang.Object
com.storedobject.core.Quantity
com.storedobject.core.Area
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionArea()
Area
(double value, MeasurementUnit unit) Area
(BigDecimal value, MeasurementUnit unit) Area
(BigDecimal value, String unit) -
Method Summary
Modifier and TypeMethodDescriptionabsolute()
Absolute value of this quantity.Add quantityAdd quantity valueadd
(BigDecimal quantity) Add quantitystatic Area
divide
(double divisor) Divide the quantity with a valuedivide
(BigDecimal divisor) Divide the quantity with a valuemultiply
(double multiplicand) Multiplymultiply
(BigDecimal multiplicand) Multiplynegate()
Reverses the sign of this quantityCreate volume of a prism with this as the base and for the given height.Create volume of a pyramid with this as the base and for the given height.static Area
static Area
Subtract quantitySubtract quantitysubtract
(BigDecimal quantity) Subtract quantityzero()
Create a quantity of this type with zero value.Methods inherited from class com.storedobject.core.Quantity
canConvert, canConvert, canConvert, canConvert, compareTo, convert, convert, convert, convert, convertValue, create, create, create, create, create, create, create, create, create, create, create, create, divide, equals, equalsWhenZero, getClass, getStorableValue, getType, getTypeName, getUnit, getUnit, getUnit, getValue, hashCode, isCompatible, isConvertible, isConvertible, isGreaterThan, isGreaterThan, isGreaterThanOrEqual, isGreaterThanOrEqual, isLessThan, isLessThan, isLessThanOrEqual, isLessThanOrEqual, isNegative, isPositive, isZero, multiply, quantityTypes, round, setUnit, setUnit, sum, toString, toString, toString, toString, types
-
Field Details
-
defaultUnit
-
-
Constructor Details
-
Area
public Area() -
Area
-
Area
-
Area
-
Area
-
-
Method Details
-
circle
-
rectangle
-
square
-
zero
-
add
-
add
Add quantity -
add
-
subtract
-
subtract
Subtract quantity -
subtract
-
multiply
Multiply -
multiply
-
divide
-
divide
Divide the quantity with a value -
negate
-
absolute
-
prism
-
pyramid
-