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
ConstructorsModifierConstructorDescriptionprivateSubTypes()Do not allow instantiation of this class (except the singleton). -
Method Summary
Modifier and TypeMethodDescription(package private) static AbstractCRScastOrCopy(org.opengis.referencing.crs.CoordinateReferenceSystem object) Returns a SIS implementation for the given coordinate reference system.intImplementation ofBY_TYPEcomparator.private static intReturns the index of the interface implemented by the given object.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
TYPE_ORDER
-
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
-
castOrCopy
Returns a SIS implementation for the given coordinate reference system.- See Also:
-