public final class PowerOfPiConverter extends AbstractConverter implements tech.uom.lib.common.function.IntExponentSupplier
AbstractConverter.PairconversionSteps, IDENTITY| Modifier | Constructor and Description |
|---|---|
protected |
PowerOfPiConverter(int exponent) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(javax.measure.UnitConverter o) |
BigDecimal |
convertWhenNotIdentity(BigDecimal value,
MathContext ctx)
Non-API
|
double |
convertWhenNotIdentity(double value)
Non-API
|
boolean |
equals(Object obj) |
int |
getExponent() |
int |
hashCode() |
AbstractConverter |
inverseWhenNotIdentity()
Non-API
|
boolean |
isIdentity() |
boolean |
isLinear() |
protected boolean |
isSimpleCompositionWith(AbstractConverter that)
Non-API
Guard for
AbstractConverter.simpleCompose(AbstractConverter) |
static PowerOfPiConverter |
of(int exponent)
Creates a converter with the specified exponent.
|
protected AbstractConverter |
simpleCompose(AbstractConverter that)
Non-API
Guarded by
AbstractConverter.isSimpleCompositionWith(AbstractConverter) |
String |
transformationLiteral()
Non-API
|
concatenate, convert, convert, convertWhenNotIdentity, getConversionSteps, inverse, of, toStringprotected PowerOfPiConverter(int exponent)
public static PowerOfPiConverter of(int exponent)
exponent - the exponent for the factor π^exponent.public int getExponent()
getExponent in interface tech.uom.lib.common.function.IntExponentSupplierpublic boolean isIdentity()
isIdentity in interface javax.measure.UnitConverterpublic boolean isLinear()
isLinear in interface javax.measure.UnitConverterpublic AbstractConverter inverseWhenNotIdentity()
AbstractConverterReturns an AbstractConverter that represents the inverse transformation of this converter, for cases where the transformation is not the identity transformation.
inverseWhenNotIdentity in class AbstractConverterpublic BigDecimal convertWhenNotIdentity(BigDecimal value, MathContext ctx) throws ArithmeticException
AbstractConverterconvertWhenNotIdentity in class AbstractConverterArithmeticExceptionpublic double convertWhenNotIdentity(double value)
AbstractConverterconvertWhenNotIdentity in class AbstractConverterprotected boolean isSimpleCompositionWith(AbstractConverter that)
AbstractConverterAbstractConverter.simpleCompose(AbstractConverter)isSimpleCompositionWith in class AbstractConverterprotected AbstractConverter simpleCompose(AbstractConverter that)
AbstractConverterAbstractConverter.isSimpleCompositionWith(AbstractConverter)simpleCompose in class AbstractConverterpublic boolean equals(Object obj)
equals in class AbstractConverterpublic final String transformationLiteral()
AbstractConverter
Returns a String describing the transformation that is represented by this converter.
Contributes to converter's toString method. If null or empty
toString output becomes simplified.
transformationLiteral in class AbstractConverterpublic int compareTo(javax.measure.UnitConverter o)
compareTo in interface Comparable<javax.measure.UnitConverter>public int hashCode()
hashCode in class AbstractConverterCopyright © 2005–2018 Units of Measurement project. All rights reserved.