| Modifier and Type | Field and Description |
|---|---|
| private final Object | |
| private final int | |
| private final int | |
| public static final PowerOfPiConverter | ONE
A converter by Pi to the power of 1. |
| private transient Number | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| 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. |
| 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 | 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. |
| public boolean | isLinear()
Overrides default tech. Implements javax. Indicates whether this converter represents a (one-dimensional) linear transformation, that is a linear map (wikipedia) from a one-dimensional vector space (a scalar) to a one-dimensional vector space. |
| pack-priv static PowerOfPiConverter | of(int
the exponent for the factor π^exponent. exponent)Creates a converter with the specified exponent. |
| protected AbstractConverter | reduce(AbstractConverter that)
Overrides tech. Non-API
Guarded by |
| public final String | transformationLiteral()
Implements abstract tech. Non-API Returns a String describing the transformation that is represented by this converter. |
| $lock1 | back to summary |
|---|---|
| private final Object $lock1 | |
| exponent | back to summary |
|---|---|
| private final int exponent | |
| hashCode | back to summary |
|---|---|
| private final int hashCode | |
| ONE | back to summary |
|---|---|
| public static final PowerOfPiConverter ONE A converter by Pi to the power of 1.
| |
| scaleFactor | back to summary |
|---|---|
| private transient Number scaleFactor | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides tech. | |
| PowerOfPiConverter | back to summary |
|---|---|
| protected PowerOfPiConverter(int exponent) | |
| 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
| |
| 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.
| |
| 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
| |
| isLinear | back to summary |
|---|---|
| public boolean isLinear() Overrides default tech. Implements javax. Doc from javax. Indicates whether this converter represents a (one-dimensional) linear transformation, that is a linear map (wikipedia) from a one-dimensional vector space (a scalar) to a one-dimensional vector space. Typically from 'R' to 'R', with 'R' the real numbers. Given such a 'linear' converter 'A', let 'u', 'v' and 'r' be arbitrary numbers, then the following must hold by definition:
Given a second 'linear' converter 'B', commutativity of composition follows by above definition:
A(B(u)) == B(A(u)), meaning
for 'A' and 'B' the order of their composition does not matter. Expressed as Java code:
UnitConverter#concatenate(UnitConverter).
| |
| of | back to summary |
|---|---|
| pack-priv static PowerOfPiConverter of(int exponent) Creates a converter with the specified exponent.
| |
| reduce | back to summary |
|---|---|
| protected AbstractConverter reduce(AbstractConverter that) Overrides tech. Doc from tech. Non-API
Guarded by
| |
| 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
| |