| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final int | |
| private final int | |
| private final RationalNumber | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private RationalNumber | |
| protected boolean | canReduceWith(AbstractConverter that)
Implements abstract tech. Non-API
Guard for |
| public int | compareTo(UnitConverter
the object to be compared. o)Implements java. Compares this object with the specified object for order. |
| private PowerOfIntConverter | |
| protected Number | convertWhenNotIdentity(Number value)
Implements abstract tech. Non-API |
| public boolean | equals(Object
the reference object with which to compare. obj)Implements abstract tech. Indicates whether some other object is "equal to" this one. |
| public double | |
| public int | |
| public int | getExponent()
Implements tech. Gets an exponent value. |
| public Number | |
| public int | hashCode()
Implements abstract tech. Returns a hash code value for this object. |
| public AbstractConverter | inverseWhenNotIdentity()
Implements abstract tech. Non-API Returns an AbstractConverter that represents the inverse transformation of this converter, for cases where the transformation is not the identity transformation. |
| public boolean | isIdentity()
Implements javax. Indicates if this converter is an identity converter. |
| pack-priv static PowerOfIntConverter | |
| pack-priv static PowerOfIntConverter | |
| pack-priv static PowerOfIntConverter | |
| protected AbstractConverter | reduce(AbstractConverter that)
Overrides tech. Non-API
Guarded by |
| public RationalConverter | |
| public final String | transformationLiteral()
Implements abstract tech. Non-API Returns a String describing the transformation that is represented by this converter. |
| base | back to summary |
|---|---|
| private final int base | |
| exponent | back to summary |
|---|---|
| private final int exponent | |
| hashCode | back to summary |
|---|---|
| private final int hashCode | |
| rationalFactor | back to summary |
|---|---|
| private final RationalNumber rationalFactor | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides tech. | |
| PowerOfIntConverter | back to summary |
|---|---|
| protected PowerOfIntConverter(int base, int exponent) | |
| calculateRationalNumberFactor | back to summary |
|---|---|
| private RationalNumber calculateRationalNumberFactor() | |
| canReduceWith | back to summary |
|---|---|
| protected boolean canReduceWith(AbstractConverter that) Implements abstract tech. Doc from tech. Non-API
Guard for
| |
| compareTo | back to summary |
|---|---|
| public int compareTo(UnitConverter o) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| composeSameBaseNonIdentity | back to summary |
|---|---|
| private PowerOfIntConverter composeSameBaseNonIdentity(PowerOfIntConverter other) | |
| convertWhenNotIdentity | back to summary |
|---|---|
| protected Number convertWhenNotIdentity(Number value) Implements abstract tech. Doc from tech. Non-API | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Implements abstract tech. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getAsDouble | back to summary |
|---|---|
| public double getAsDouble() Implements java. Doc from java. Gets a result.
| |
| getBase | back to summary |
|---|---|
| public int getBase() Implements tech. Doc from tech. Gets a base value.
| |
| getExponent | back to summary |
|---|---|
| public int getExponent() Implements tech. Doc from tech. Gets an exponent value.
| |
| getValue | back to summary |
|---|---|
| public Number getValue() Implements tech. Doc from tech. Gets a value. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Implements abstract tech. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| inverseWhenNotIdentity | back to summary |
|---|---|
| public AbstractConverter inverseWhenNotIdentity() Implements abstract tech. Doc from tech. Non-API Returns an AbstractConverter that represents the inverse transformation of this converter, for cases where the transformation is not the identity transformation.
| |
| isIdentity | back to summary |
|---|---|
| public boolean isIdentity() Implements javax. Doc from javax. Indicates if this converter is an identity converter. The identity converter returns its input argument ( Note Identity converters are also always 'linear', see
| |
| of | back to summary |
|---|---|
| pack-priv static PowerOfIntConverter of(Prefix prefix) Creates a converter with the specified Prefix.
| |
| of | back to summary |
|---|---|
| pack-priv static PowerOfIntConverter of(int base, int exponent) Creates a converter with a factor represented by specified base^exponent. | |
| of | back to summary |
|---|---|
| pack-priv static PowerOfIntConverter of(Number base, int exponent) Creates a converter with a factor represented by specified base^exponent. | |
| reduce | back to summary |
|---|---|
| protected AbstractConverter reduce(AbstractConverter that) Overrides tech. Doc from tech. Non-API
Guarded by
| |
| toRationalConverter | back to summary |
|---|---|
| public RationalConverter toRationalConverter() | |
| transformationLiteral | back to summary |
|---|---|
| public final String transformationLiteral() Implements abstract tech. Doc from tech. Non-API
Returns a String describing the transformation that is represented by this converter.
Contributes to converter's
| |