Class AngleConverter
java.lang.Object
org.apache.sis.internal.converter.ClassPair<S,T>
org.apache.sis.internal.converter.SystemConverter<Angle,Double>
org.apache.sis.internal.converter.AngleConverter
- All Implemented Interfaces:
Serializable
,Function<Angle,
,Double> ObjectConverter<Angle,
Double>
Handles conversions between
Angle
and Double
.
Immutability and thread safety
This class is immutable and thus inherently thread-safe. The sameINSTANCE
can be passed between threads without synchronization.- Since:
- 0.3
- Version:
- 0.3
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final AngleConverter
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
-
AngleConverter
public AngleConverter()Creates a new converter.
-
-
Method Details
-
unique
Returns the unique instance.- Overrides:
unique
in classSystemConverter<Angle,
Double> - Returns:
- unique instance.
- See Also:
-
inverse
Returns the inverse converter.- Specified by:
inverse
in interfaceObjectConverter<Angle,
Double> - Overrides:
inverse
in classSystemConverter<Angle,
Double> - Returns:
AngleConverter.Inverse
.- See Also:
-
properties
Declares that the converter is bijective.- Returns:
- injective and surjective function properties (among others).
-
apply
Converts the given angle.- Parameters:
object
- the angle to convert.- Returns:
- angular value in degrees.
-