Skip navigation links
A C D E F G H I P R S T 

A

APIAutoDataSource - Class in io.github.julwas797.esaapi.api.impl
An extension of APIDataSource, providing automatic refresh in initialization.
APIAutoDataSource() - Constructor for class io.github.julwas797.esaapi.api.impl.APIAutoDataSource
Parameterless constructor that preforms data refreshing upon being called.
APIDataSource - Class in io.github.julwas797.esaapi.api.impl
Basic data source of air pollution data.
APIDataSource() - Constructor for class io.github.julwas797.esaapi.api.impl.APIDataSource
 
APIEntry - Class in io.github.julwas797.esaapi.common
DTO joining SchoolEntry and SmogEntry
APIEntry(SchoolEntry, SmogEntry) - Constructor for class io.github.julwas797.esaapi.common.APIEntry
Default constructor of APIEntry
APIHandler - Class in io.github.julwas797.esaapi.api.handler
Main API Data handler, implemented using Singleton pattern

C

Coordinates - Class in io.github.julwas797.esaapi.common
Basic implementation of longitude/latitude coordinate system used in SchoolEntry
Coordinates(double, double) - Constructor for class io.github.julwas797.esaapi.common.Coordinates
Default constructor of Coordinates

D

DataSource - Interface in io.github.julwas797.esaapi.api
Interface that provides base of air pollution data sources / repositories.

E

equals(Object) - Method in class io.github.julwas797.esaapi.common.APIEntry
Compares the equality of APIEntry
equals(Object) - Method in class io.github.julwas797.esaapi.common.Coordinates
Compares the equality of Coordinates
equals(Object) - Method in class io.github.julwas797.esaapi.common.SchoolEntry
Compares the equality of SchoolEntry
equals(Object) - Method in class io.github.julwas797.esaapi.common.SmogEntry
Compares the equality of SmogEntry

F

format(JSONObject) - Method in class io.github.julwas797.esaapi.format.PostalCodeFormatter
Postal code formatting method.

G

getApiEntryList() - Method in class io.github.julwas797.esaapi.api.impl.APIDataSource
Returns a list of APIEntry
getAverageHumidity() - Method in class io.github.julwas797.esaapi.common.SmogEntry
Method to obtain average humidity percentage
getAveragePm10() - Method in class io.github.julwas797.esaapi.common.SmogEntry
Method to obtain average amount PM2.5 in micrograms per square meter of air
getAveragePm25() - Method in class io.github.julwas797.esaapi.common.SmogEntry
Method to obtain average amount PM10 in micrograms per square meter of air
getAveragePressure() - Method in class io.github.julwas797.esaapi.common.SmogEntry
Method to obtain average air pressure in hectopascals
getAverageTemperature() - Method in class io.github.julwas797.esaapi.common.SmogEntry
Method to obtain average temperature in Celsius degrees
getCity() - Method in class io.github.julwas797.esaapi.common.SchoolEntry
Returns String containing city the school is located in
getCoordinates() - Method in class io.github.julwas797.esaapi.common.SchoolEntry
Returns Coordinates containing the school location
getInstance() - Static method in class io.github.julwas797.esaapi.api.handler.APIHandler
This method is used to obtain the singleton instance of itself.
getInstance() - Static method in class io.github.julwas797.esaapi.format.PostalCodeFormatter
This method is used to obtain the singleton instance of itself.
getJsonApiDataArray(String) - Method in class io.github.julwas797.esaapi.api.handler.APIHandler
Method used to convert raw JSON data (APIHandler.getRawJsonData()) into JSONArray
getJsonApiDataArray() - Method in class io.github.julwas797.esaapi.api.handler.APIHandler
Alternative version APIHandler.getJsonApiDataArray(String) that automatically fetches data from APIHandler.getRawJsonData()
getLatitude() - Method in class io.github.julwas797.esaapi.common.Coordinates
Returns the latitude coordinates
getLongitude() - Method in class io.github.julwas797.esaapi.common.Coordinates
Returns the longitude coordinates
getName() - Method in class io.github.julwas797.esaapi.common.SchoolEntry
Returns String containing school name
getPostalCode() - Method in class io.github.julwas797.esaapi.common.SchoolEntry
Returns integer containing postal code of school
getRawJsonData() - Method in class io.github.julwas797.esaapi.api.handler.APIHandler
Method used to join data obtained using APIHandler.getReader() into String.
getReader() - Method in class io.github.julwas797.esaapi.api.handler.APIHandler
Method used to obtain BufferedReader of raw API Data.
getSchoolEntry() - Method in class io.github.julwas797.esaapi.common.APIEntry
Returns SchoolEntry associated with specific air pollution data
getSmogEntry() - Method in class io.github.julwas797.esaapi.common.APIEntry
Returns SmogEntry associated with specific air pollution data
getStreet() - Method in class io.github.julwas797.esaapi.common.SchoolEntry
Returns String containing street the school is located on

H

hashCode() - Method in class io.github.julwas797.esaapi.common.APIEntry
Calculates hashcode of specific APIEntry
hashCode() - Method in class io.github.julwas797.esaapi.common.Coordinates
Calculates hashcode of specific Coordinates
hashCode() - Method in class io.github.julwas797.esaapi.common.SchoolEntry
Calculates hashcode of specific SchoolEntry
hashCode() - Method in class io.github.julwas797.esaapi.common.SmogEntry
Calculates hashcode of specific SmogEntry

I

io.github.julwas797.esaapi.api - package io.github.julwas797.esaapi.api
 
io.github.julwas797.esaapi.api.handler - package io.github.julwas797.esaapi.api.handler
 
io.github.julwas797.esaapi.api.impl - package io.github.julwas797.esaapi.api.impl
 
io.github.julwas797.esaapi.common - package io.github.julwas797.esaapi.common
 
io.github.julwas797.esaapi.format - package io.github.julwas797.esaapi.format
 

P

PostalCodeFormatter - Class in io.github.julwas797.esaapi.format
Postal code formatter, implemented using Singleton pattern

R

refreshEntries() - Method in interface io.github.julwas797.esaapi.api.DataSource
Base method that should provide ability to refresh air pollution data.
refreshEntries() - Method in class io.github.julwas797.esaapi.api.impl.APIDataSource
Method used to refresh entries in APIDataSource.apiEntryList

S

SchoolEntry - Class in io.github.julwas797.esaapi.common
DTO containing data about specified school.
SchoolEntry(String, String, int, String, Coordinates) - Constructor for class io.github.julwas797.esaapi.common.SchoolEntry
Default constructor for school DTO
SchoolEntry(JSONObject) - Constructor for class io.github.julwas797.esaapi.common.SchoolEntry
Alternative constructor of school location DTO from JSONObject
SchoolEntry(String, String, int, String, double, double) - Constructor for class io.github.julwas797.esaapi.common.SchoolEntry
Alternative constructor, joining SchoolEntry(String, String, int, String, Coordinates) SchoolEntry} and Coordinates(double, double) Coordinates}.
SmogEntry - Class in io.github.julwas797.esaapi.common
DTO containing data about air pollution.
SmogEntry(JSONObject) - Constructor for class io.github.julwas797.esaapi.common.SmogEntry
Alternative constructor of air pollution DTO from JSONObject
SmogEntry(double, double, double, double, double) - Constructor for class io.github.julwas797.esaapi.common.SmogEntry
 

T

toString() - Method in class io.github.julwas797.esaapi.common.APIEntry
Converts the following APIEntry to String
toString() - Method in class io.github.julwas797.esaapi.common.Coordinates
Converts the following Coordinates to String
toString() - Method in class io.github.julwas797.esaapi.common.SchoolEntry
Converts the following SchoolEntry to String
toString() - Method in class io.github.julwas797.esaapi.common.SmogEntry
Converts the following SmogEntry to String
A C D E F G H I P R S T 
Skip navigation links

Copyright © 2023. All rights reserved.