public class Coordinates extends Object
SchoolEntry| Constructor and Description |
|---|
Coordinates(double longitude,
double latitude)
Default constructor of
Coordinates |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Compares the equality of
Coordinates |
double |
getLatitude()
Returns the latitude coordinates
|
double |
getLongitude()
Returns the longitude coordinates
|
int |
hashCode()
Calculates hashcode of specific
Coordinates |
String |
toString()
Converts the following
Coordinates to String |
public Coordinates(double longitude,
double latitude)
Coordinateslongitude - longitude coordinateslatitude - latitude coordinatespublic double getLongitude()
public double getLatitude()
public String toString()
Coordinates to Stringpublic boolean equals(Object o)
Coordinatesequals in class Objecto - Object, presumably Coordinatespublic int hashCode()
CoordinatesCopyright © 2024. All rights reserved.