Class AngleConverter.Inverse
java.lang.Object
org.apache.sis.internal.converter.ClassPair<S,T>
org.apache.sis.internal.converter.SystemConverter<Double,Angle>
org.apache.sis.internal.converter.AngleConverter.Inverse
- All Implemented Interfaces:
Serializable
,Function<Double,
,Angle> ObjectConverter<Double,
Angle>
- Enclosing class:
- AngleConverter
The inverse of
AngleConverter
.
Thread safety
This class is immutable, and thus inherently thread-safe.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final AngleConverter.Inverse
The unique instance.private static final long
For cross-version compatibility.Fields inherited from class org.apache.sis.internal.converter.ClassPair
sourceClass, targetClass
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.sis.internal.converter.SystemConverter
bijective, equals, formatErrorMessage, getSourceClass, getTargetClass, readResolve
Methods inherited from class org.apache.sis.internal.converter.ClassPair
cast, hashCode, parentSource, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor cross-version compatibility.- See Also:
-
INSTANCE
The unique instance.
-
-
Constructor Details
-
Inverse
public Inverse()Creates a new converter.
-
-
Method Details
-
unique
Returns the unique instance.- Overrides:
unique
in classSystemConverter<Double,
Angle> - Returns:
- the unique instance.
- See Also:
-
inverse
Returns the inverse converter.- Specified by:
inverse
in interfaceObjectConverter<Double,
Angle> - Overrides:
inverse
in classSystemConverter<Double,
Angle> - Returns:
AngleConverter
.- See Also:
-
properties
Declares that the converter is bijective.- Returns:
- injective and surjective function properties (among others).
-
apply
Converts the given angle.- Parameters:
object
- angular value in degrees.- Returns:
- the angle object for the given value.
-