Class StationExtractor

java.lang.Object
com.example.dhaka_metro_rail.StationExtractor

public class StationExtractor extends Object
This class is for accessing all the stations and metro information from the existing text files by calling respective methods.
  • 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

      public Set<String> getStations()
      Retrieve a set of all the stations from the text file.
      Returns:
      A set containing the names of all stations.
    • getMetro

      public Set<String> getMetro()
      Retrieve a set of all the metro information from the text file.
      Returns:
      A set containing the metro information.