Class SubTypes

java.lang.Object
org.apache.sis.referencing.crs.SubTypes
All Implemented Interfaces:
Comparator<Object>

final class SubTypes extends Object implements 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 Details

    • TYPE_ORDER

      private static final Class<?>[] TYPE_ORDER
      CRS types to sort first in a compound CRS. Any type not in this list will be sorted last. Used for implementation of BY_TYPE comparator.
    • BY_TYPE

      static final Comparator<Object> 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