Modifier and Type | Class and Description |
---|---|
static class |
Numeric.NumericInit
Provides dictionary that allows to initialize different unit types.
|
static class |
Numeric.ValueHelper |
Unit.UnitInit
Constructor and Description |
---|
Numeric(Numeric.NumericInit initData)
Initializes a new instance of the
Unit class. |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Numeric other)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
|
boolean |
equals(Unit other)
Determines whether the specified
Unit , is equal to this instance. |
double |
getValue()
Gets the unit value.
|
double |
getValue(UnitType unitType)
Gets the value converted to the specified
UnitType . |
int |
hashCode()
Returns a hash code for this instance.
|
void |
initialize(Unit.UnitInit data)
Initializes a unit with a specified data.
|
String |
toString()
Returns a
String that represents this instance. |
equals, fromCentimeters, fromDegrees, fromDotsPerCentimeters, fromDotsPerInch, fromDotsPerPixel, fromGradians, fromHertz, fromInches, fromKiloHertz, fromMillimeters, fromMilliseconds, fromPicas, fromPixels, fromPoints, fromQuarterMillimeters, fromRadians, fromSeconds, fromTurns, getUnitType
public Numeric(Numeric.NumericInit initData)
Initializes a new instance of the Unit
class.
initData
- The initialization data.public double getValue()
Gets the unit value.
public void initialize(Unit.UnitInit data)
Initializes a unit with a specified data.
data
- The data.public int compareTo(Numeric other)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
other
- The other object to compare.com.aspose.html.internal.ms.System.ArgumentNullException
- othercom.aspose.html.internal.ms.System.ArgumentException
public boolean equals(Unit other)
Determines whether the specified Unit
, is equal to this instance.
public int hashCode()
Returns a hash code for this instance.