01: package com.uvw.travel.impl;
02:
03: import com.uvw.travel.Flight;
04: import java.util.Date;
05:
06: /**
07: * @author Adrian Price
08: */
09: public class FlightImpl implements Flight {
10: private final String flightNumber;
11: private final String fromAirportCode;
12: private final String toAirportCode;
13: private final Date departureTime;
14: private final Date arrivalTime;
15:
16: public FlightImpl(String flightNumber, String fromAirportCode,
17: String toAirportCode, Date departureTime, Date arrivalTime) {
18: this .flightNumber = flightNumber;
19: this .fromAirportCode = fromAirportCode;
20: this .toAirportCode = toAirportCode;
21: this .departureTime = departureTime;
22: this .arrivalTime = arrivalTime;
23: }
24:
25: public String getFlightNumber() {
26: return flightNumber;
27: }
28:
29: public String getFromAirportCode() {
30: return fromAirportCode;
31: }
32:
33: public String getToAirportCode() {
34: return toAirportCode;
35: }
36:
37: public Date getDepartureTime() {
38: return departureTime;
39: }
40:
41: public Date getArrivalTime() {
42: return arrivalTime;
43: }
44: }
|