public class Departure { private TransportType type; private String from; private String to; private int duration; private int price; private int minTransferTime; public Departure( TransportType type, String from, String to, int duration, int price, int minTransferTime) { this.type = type; this.from = from; this.to = to; this.duration = duration; this.price = price; this.minTransferTime = minTransferTime; } public TransportType getType() { return type; } public String getFrom() { return from; } public String getTo() { return to; } public int getDuration() { return duration; } public int getPrice() { return price; } public int getMinTransferTime() { return minTransferTime; } }