Package org.apache.sis.referencing.crs
Class SubTypes
java.lang.Object
org.apache.sis.referencing.crs.SubTypes
- All Implemented Interfaces:
Comparator<Object>
Implementation of
AbstractCRS
methods that require knowledge about subclasses.
Those methods are defined in a separated static class for avoiding class loading of all
coordinate reference system implementations before necessary.
This class currently provides implementation for the following methods:
- Since:
- 0.4
- Version:
- 0.7
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final Comparator
<Object> A comparator for sorting CRS objects by their types.private static final Class<?>[]
CRS types to sort first in a compound CRS. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
SubTypes()
Do not allow instantiation of this class (except the singleton). -
Method Summary
Modifier and TypeMethodDescription(package private) static AbstractCRS
castOrCopy
(org.opengis.referencing.crs.CoordinateReferenceSystem object) Returns a SIS implementation for the given coordinate reference system.int
Implementation ofBY_TYPE
comparator.private static int
Returns the index of the interface implemented by the given object.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
TYPE_ORDER
CRS types to sort first in a compound CRS. Any type not in this list will be sorted last. Used for implementation ofBY_TYPE
comparator. -
BY_TYPE
A comparator for sorting CRS objects by their types. The comparison sorts projected CRS first, followed by geodetic, vertical then temporal CRS.
-
-
Constructor Details
-
SubTypes
private SubTypes()Do not allow instantiation of this class (except the singleton).
-
-
Method Details
-
indexOf
Returns the index of the interface implemented by the given object. -
compare
Implementation ofBY_TYPE
comparator.- Specified by:
compare
in interfaceComparator<Object>
-
castOrCopy
Returns a SIS implementation for the given coordinate reference system.- See Also:
-