Record Class PlaceResults.DisplayMapRegion

java.lang.Object
java.lang.Record
org.localify.dto.geocoding.PlaceResults.DisplayMapRegion
Record Components:
southLatitude - The southern latitude boundary.
westLongitude - The western longitude boundary.
northLatitude - The northern latitude boundary.
eastLongitude - The eastern longitude boundary.
Enclosing class:
PlaceResults

public static record PlaceResults.DisplayMapRegion(double southLatitude, double westLongitude, double northLatitude, double eastLongitude) extends Record
Represents a map region for display purposes.
  • Constructor Details

    • DisplayMapRegion

      public DisplayMapRegion(double southLatitude, double westLongitude, double northLatitude, double eastLongitude)
      Creates an instance of a DisplayMapRegion record class.
      Parameters:
      southLatitude - the value for the southLatitude record component
      westLongitude - the value for the westLongitude record component
      northLatitude - the value for the northLatitude record component
      eastLongitude - the value for the eastLongitude record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • southLatitude

      public double southLatitude()
      Returns the value of the southLatitude record component.
      Returns:
      the value of the southLatitude record component
    • westLongitude

      public double westLongitude()
      Returns the value of the westLongitude record component.
      Returns:
      the value of the westLongitude record component
    • northLatitude

      public double northLatitude()
      Returns the value of the northLatitude record component.
      Returns:
      the value of the northLatitude record component
    • eastLongitude

      public double eastLongitude()
      Returns the value of the eastLongitude record component.
      Returns:
      the value of the eastLongitude record component