Class SRTMTileId

java.lang.Object
org.ka2ddo.yaac.srtm.SRTMTileId

public class SRTMTileId extends Object
Hashmap key for caching SRTMTile objects.
Author:
Andrew Pavlin, KA2DDO
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final int
    The latitude of the SRTMTile.
    final int
    The longitude of the SRTMTile.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SRTMTileId(int latitude, int longitude)
    Create an SRTMTileId object.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Indicate whether some other object is "equal to" this one.
    int
    Return hashcode of this object
    Produce a String describing this object.

    Methods inherited from class java.lang.Object

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

    • latitude

      public final int latitude
      The latitude of the SRTMTile.
    • longitude

      public final int longitude
      The longitude of the SRTMTile.
  • Constructor Details

    • SRTMTileId

      public SRTMTileId(int latitude, int longitude)
      Create an SRTMTileId object.
      Parameters:
      latitude - int latitude of the tile in integer whole degrees
      longitude - int longitude of the tile in integer whole degrees
  • Method Details

    • equals

      public boolean equals(Object obj)
      Indicate whether some other object is "equal to" this one.
      Overrides:
      equals in class Object
      Parameters:
      obj - Object to compare
      Returns:
      boolean true if objects are equal
    • hashCode

      public int hashCode()
      Return hashcode of this object
      Overrides:
      hashCode in class Object
      Returns:
      hashcode value
    • toString

      public String toString()
      Produce a String describing this object.
      Overrides:
      toString in class Object
      Returns:
      descriptive String