Class CRSPair

java.lang.Object
org.apache.sis.referencing.operation.CRSPair

final class CRSPair extends Object
A pair of source-destination CoordinateReferenceSystem objects. Used as key in hash map.
Since:
0.7
Version:
1.1
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) final org.opengis.referencing.crs.CoordinateReferenceSystem
    The source and target CRS.
    (package private) final org.opengis.referencing.crs.CoordinateReferenceSystem
    The source and target CRS.
  • Constructor Summary

    Constructors
    Constructor
    Description
    CRSPair(org.opengis.referencing.crs.CoordinateReferenceSystem sourceCRS, org.opengis.referencing.crs.CoordinateReferenceSystem targetCRS)
    Creates a CRSPair for the specified source and target CRS.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object object)
    Compares this pair to the specified object for equality.
    int
    Returns the hash code value.
    (package private) static String
    label(org.opengis.referencing.IdentifiedObject object)
    Returns the name of the GeoAPI interface implemented by the specified object.
    Returns a string representation of this key.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • sourceCRS

      final org.opengis.referencing.crs.CoordinateReferenceSystem sourceCRS
      The source and target CRS.
    • targetCRS

      final org.opengis.referencing.crs.CoordinateReferenceSystem targetCRS
      The source and target CRS.
  • Constructor Details

    • CRSPair

      CRSPair(org.opengis.referencing.crs.CoordinateReferenceSystem sourceCRS, org.opengis.referencing.crs.CoordinateReferenceSystem targetCRS)
      Creates a CRSPair for the specified source and target CRS.
  • Method Details

    • hashCode

      public int hashCode()
      Returns the hash code value.
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object object)
      Compares this pair to the specified object for equality.
      Overrides:
      equals in class Object
    • label

      static String label(org.opengis.referencing.IdentifiedObject object)
      Returns the name of the GeoAPI interface implemented by the specified object. In the GeographicCRS or EllipsoidalCS cases, the trailing CRS or CS suffix is replaced by the number of dimensions (e.g. "Geographic3D").
    • toString

      public String toString()
      Returns a string representation of this key.
      Overrides:
      toString in class Object