Package org.localify.dto.geocoding
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 Summary
ConstructorsConstructorDescriptionDisplayMapRegion(double southLatitude, double westLongitude, double northLatitude, double eastLongitude) Creates an instance of aDisplayMapRegionrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theeastLongituderecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of thenorthLatituderecord component.doubleReturns the value of thesouthLatituderecord component.final StringtoString()Returns a string representation of this record class.doubleReturns the value of thewestLongituderecord component.
-
Constructor Details
-
DisplayMapRegion
public DisplayMapRegion(double southLatitude, double westLongitude, double northLatitude, double eastLongitude) Creates an instance of aDisplayMapRegionrecord class.- Parameters:
southLatitude- the value for thesouthLatituderecord componentwestLongitude- the value for thewestLongituderecord componentnorthLatitude- the value for thenorthLatituderecord componenteastLongitude- the value for theeastLongituderecord component
-
-
Method Details
-
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. -
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. -
equals
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 '=='. -
southLatitude
public double southLatitude()Returns the value of thesouthLatituderecord component.- Returns:
- the value of the
southLatituderecord component
-
westLongitude
public double westLongitude()Returns the value of thewestLongituderecord component.- Returns:
- the value of the
westLongituderecord component
-
northLatitude
public double northLatitude()Returns the value of thenorthLatituderecord component.- Returns:
- the value of the
northLatituderecord component
-
eastLongitude
public double eastLongitude()Returns the value of theeastLongituderecord component.- Returns:
- the value of the
eastLongituderecord component
-