Package uk.me.nxg.unity
Class SimpleDecimalUnit
java.lang.Object
uk.me.nxg.unity.OneUnit
uk.me.nxg.unity.SimpleUnit
uk.me.nxg.unity.SimpleDecimalUnit
- All Implemented Interfaces:
Comparable<OneUnit>
A unit which has a prefix which is a round power of 1000.
- See Also:
-
Method Summary
Methods inherited from class uk.me.nxg.unity.SimpleUnit
compareTo, equals, getBaseUnitDefinition, getBaseUnitName, getBaseUnitString, getDimensions, getOriginalUnitString, getPrefix, hashCode, isRecognisedUnit, isRecognisedUnit, isRecommendedUnit, satisfiesUsageConstraints, toDebugString, toString, toString, unitString, unitString
Methods inherited from class uk.me.nxg.unity.OneUnit
divide, getExponent, isQuoted, reciprocate
-
Method Details
-
wasGuessed
public boolean wasGuessed()Description copied from class:OneUnit
Return true if this unit was guessed. That is, if it was identified heuristically, by using a parser configured withUnitParser.setGuessing(boolean)
- Overrides:
wasGuessed
in classOneUnit
- Returns:
- true if the unit was guessed
-