Package org.vaadin.addons.maplibre.dto
Record Class LngLat
java.lang.Object
java.lang.Record
org.vaadin.addons.maplibre.dto.LngLat
-
Constructor Summary
ConstructorsConstructorDescriptionLngLat(double lng, double lat) Creates an instance of aLngLatrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doublelat()Returns the value of thelatrecord component.doublelng()Returns the value of thelngrecord component.static LngLatof(org.locationtech.jts.geom.Coordinate c) static LngLatof(org.locationtech.jts.geom.Point p) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LngLat
public LngLat(double lng, double lat) Creates an instance of aLngLatrecord class.- Parameters:
lng- the value for thelngrecord componentlat- the value for thelatrecord component
-
-
Method Details
-
of
-
of
-
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 '=='. -
lng
public double lng()Returns the value of thelngrecord component.- Returns:
- the value of the
lngrecord component
-
lat
public double lat()Returns the value of thelatrecord component.- Returns:
- the value of the
latrecord component
-