Package com.example.dhaka_metro_rail
Class StationExtractor
java.lang.Object
com.example.dhaka_metro_rail.StationExtractor
This class is for accessing all the stations and metro information from the existing text files by calling respective methods.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStationExtractor(android.content.res.Resources resources) Constructor for StationExtractor class. -
Method Summary
-
Field Details
-
resources
private android.content.res.Resources resources
-
-
Constructor Details
-
StationExtractor
public StationExtractor(android.content.res.Resources resources) Constructor for StationExtractor class.- Parameters:
resources- The Resources object used to access app resources.
-
-
Method Details
-
getStations
Retrieve a set of all the stations from the text file.- Returns:
- A set containing the names of all stations.
-
getMetro
Retrieve a set of all the metro information from the text file.- Returns:
- A set containing the metro information.
-