| Constructor and Description |
|---|
SchoolEntry(org.json.JSONObject jsonObject)
Alternative constructor of school location DTO from
JSONObject |
SchoolEntry(String name,
String street,
int postalCode,
String city,
Coordinates coordinates)
Default constructor for school DTO
|
SchoolEntry(String name,
String street,
int postalCode,
String city,
double longitude,
double latitude)
Alternative constructor, joining
SchoolEntry(String, String, int, String, Coordinates) SchoolEntry} and Coordinates(double, double) Coordinates}. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Compares the equality of
SchoolEntry |
String |
getCity()
Returns
String containing city the school is located in |
Coordinates |
getCoordinates()
Returns
Coordinates containing the school location |
String |
getName()
Returns
String containing school name |
int |
getPostalCode()
Returns integer containing postal code of school
|
String |
getStreet()
Returns
String containing street the school is located on |
int |
hashCode()
Calculates hashcode of specific
SchoolEntry |
String |
toString()
Converts the following
SchoolEntry to String |
public SchoolEntry(String name, String street, int postalCode, String city, Coordinates coordinates)
name - Name of the schoolstreet - Street the school is located onpostalCode - Postal code of schoolcity - City the school is located incoordinates - Coordinates representing the location of the schoolpublic SchoolEntry(org.json.JSONObject jsonObject)
JSONObjectjsonObject - JSONObject containing school data.public SchoolEntry(String name, String street, int postalCode, String city, double longitude, double latitude)
SchoolEntry(String, String, int, String, Coordinates) SchoolEntry} and Coordinates(double, double) Coordinates}.name - Name of the schoolstreet - Street the school is located onpostalCode - Postal code of schoolcity - City the school is located inlongitude - Longitude of school locationlatitude - Latitude of school locationpublic String getStreet()
String containing street the school is located onpublic int getPostalCode()
public String getCity()
String containing city the school is located inpublic Coordinates getCoordinates()
Coordinates containing the school locationCoordinates representing the location of the schoolpublic String toString()
SchoolEntry to Stringpublic boolean equals(Object o)
SchoolEntryequals in class Objecto - Object, presumably SchoolEntrypublic int hashCode()
SchoolEntryCopyright © 2024. All rights reserved.