Class Geo.Metro

  • Enclosing class:
    Geo

    public static class Geo.Metro
    extends java.lang.Object
    This inner class represents a Metro, which is composed of its name and the name of its country.
    See Also:
    Geo.getMetros(String, String)
    • Constructor Summary

      Constructors 
      Constructor Description
      Metro​(java.lang.String name, java.lang.String country)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getCountry()  
      java.lang.String getName()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Metro

        public Metro​(java.lang.String name,
                     java.lang.String country)
    • Method Detail

      • getName

        public java.lang.String getName()
      • getCountry

        public java.lang.String getCountry()