public class Airport extends Object implements Serializable
| Constructor and Description |
|---|
Airport(String airportCode,
String city)
Instantiates a new airport.
|
Airport(String airportCode,
String city,
String gate,
String terminal)
Instantiates a new airport.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAirportCode()
Gets the airport code.
|
String |
getCity()
Gets the city.
|
String |
getGate()
Gets the gate.
|
String |
getTerminal()
Gets the terminal.
|
int |
hashCode() |
void |
setAirportCode(String airportCode)
Sets the airport code.
|
void |
setCity(String city)
Sets the city.
|
void |
setGate(String gate)
Sets the gate.
|
void |
setTerminal(String terminal)
Sets the terminal.
|
String |
toString() |
public Airport(String airportCode, String city)
airportCode - the airport codecity - the citypublic String getAirportCode()
public void setAirportCode(String airportCode)
airportCode - the new airport codepublic String getCity()
public void setCity(String city)
city - the new citypublic String getTerminal()
public void setTerminal(String terminal)
terminal - the new terminalpublic String getGate()
public void setGate(String gate)
gate - the new gateCopyright © 2017 BotMill. All rights reserved.