Class AirportServiceMap
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<Airline, Collection<Airport>>
,NavigableMap<Airline, Collection<Airport>>
,SequencedMap<Airline, Collection<Airport>>
,SortedMap<Airline, Collection<Airport>>
A bean to track which Airports are served by particular Airlines.
- Since:
- 1.0
- Version:
- 9.0
- Author:
- Luke
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a particular Airport/Airline pair.Returns the codes of all Airlines serving a particular Airport.boolean
isServiced
(Airport ap, Airline a) Queries whether a particular Airline serves a particular Airport.Methods inherited from class java.util.TreeMap
ceilingEntry, ceilingKey, clear, clone, comparator, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, forEach, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, merge, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, putFirst, putIfAbsent, putLast, remove, replace, replace, replaceAll, size, subMap, subMap, tailMap, tailMap, values
Methods inherited from class java.util.AbstractMap
equals, hashCode, isEmpty, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.NavigableMap
reversed
Methods inherited from interface java.util.SequencedMap
sequencedEntrySet, sequencedKeySet, sequencedValues
-
Constructor Details
-
AirportServiceMap
public AirportServiceMap()
-
-
Method Details
-
add
-
isServiced
-
getAirlineCodes
Returns the codes of all Airlines serving a particular Airport.- Parameters:
a
- the Airport bean- Returns:
- a Collection of Airline codes
- See Also:
-