Package wt.part
Class SubstituteQuantity
java.lang.Object
wt.part._SubstituteQuantity
wt.part.SubstituteQuantity
- All Implemented Interfaces:
Externalizable,Serializable,wt.fc._NetFactor,wt.fc._ObjectMappable,NetFactor,ObjectMappable
@GeneratedProperty(name="amount",type=java.lang.Double.class,supportedAPI=PUBLIC,javaDoc="The amount attributes represents the amount portion of the Quantity.",accessors=@PropertyAccessors(setExceptions={})) @GeneratedProperty(name="unit",type=QuantityUnit.class,supportedAPI=PUBLIC,accessors=@PropertyAccessors(setExceptions={}),constraints=@PropertyConstraints(upperLimit=30))
public final class SubstituteQuantity
extends _SubstituteQuantity
This structured attribute class represents the concept of substitute quantity as
an
_SubstituteQuantity.amount and a QuantityUnit (unit of measure).
Use the newSubstituteQuantity static factory method(s), not the SubstituteQuantity
constructor, to construct instances of this class. Instances must be
constructed using the static factory(s), in order to ensure proper initialization
of the instance.
Supported API: true
Extendable: false
- See Also:
-
Field Summary
Fields inherited from class wt.part._SubstituteQuantity
AMOUNT, UNIT -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if the amount and QuantityUnit are equivalent.protected voidSupports initialization, following construction of an instance.protected voidinitialize(Double an_Amount, QuantityUnit a_Unit) Supports initialization, following construction of an instance.static SubstituteQuantityQuantity factory, allowing construction with null values
Supported API: truestatic SubstituteQuantitynewSubstituteQuantity(Double an_Amount, QuantityUnit a_Unit) SubstituteQuantity factory, allowing construction with a specified amount and unit.Methods inherited from class wt.part._SubstituteQuantity
getAmount, getUnit, setAmount, setUnit
-
Method Details
-
newSubstituteQuantity
public static SubstituteQuantity newSubstituteQuantity(Double an_Amount, QuantityUnit a_Unit) throws WTException SubstituteQuantity factory, allowing construction with a specified amount and unit.
Supported API: true- Parameters:
an_Amount-a_Unit-- Returns:
- Quantity
- Throws:
WTException
-
initialize
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.
Supported API: true- Parameters:
an_Amount-a_Unit-- Throws:
WTException
-
newSubstituteQuantity
Quantity factory, allowing construction with null values
Supported API: true- Parameters:
an_Amount-a_Unit-- Returns:
- Quantity
- Throws:
WTException
-
initialize
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.
Supported API: true- Throws:
WTException
-
equals
Returns true if the amount and QuantityUnit are equivalent. Does not convert from one unit to another.
Supported API: true
-