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 AngleConverterThe unique instance.private static final longFor 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, readResolveMethods 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:
uniquein classSystemConverter<Angle,Double> - Returns:
- unique instance.
- See Also:
-
inverse
Returns the inverse converter.- Specified by:
inversein interfaceObjectConverter<Angle,Double> - Overrides:
inversein 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.
-