Class AirportCharts<T extends Chart>

java.lang.Object
org.deltava.beans.schedule.AirportCharts<T>
Type Parameters:
T - the Chart type
All Implemented Interfaces:
Serializable, Comparable<AirportCharts<?>>, Iterable<T>

public class AirportCharts<T extends Chart> extends Object implements Iterable<T>, Serializable, Comparable<AirportCharts<?>>
A bean to store a collection of Charts associated with an Airport.
Since:
5.0
Version:
7.2
Author:
Luke
See Also:
  • Constructor Details

    • AirportCharts

      public AirportCharts(Airport a)
      Initializes the collection.
      Parameters:
      a - the Airport
    • AirportCharts

      public AirportCharts(Airport a, Collection<T> charts)
      Initializes the collection.
      Parameters:
      a - the Airport
      charts - the charts to include
  • Method Details

    • getAirport

      public Airport getAirport()
      Returns the Airport.
      Returns:
      the Airport
    • get

      public T get(String name)
      Returns a particular Chart
      Parameters:
      name - the chart name
      Returns:
      the Chart, or null if not found
    • getCharts

      public Collection<T> getCharts()
      Returns the Charts.
      Returns:
      a Collection of Charts
    • getChartNames

      public Collection<String> getChartNames()
      Returns the chart names.
      Returns:
      a Collection of Chart names
    • add

      public void add(T ec)
      Adds a chart to the collection.
      Parameters:
      ec - the Chart
    • iterator

      public Iterator<T> iterator()
      Specified by:
      iterator in interface Iterable<T extends Chart>
    • compareTo

      public int compareTo(AirportCharts<?> ac2)
      Specified by:
      compareTo in interface Comparable<T extends Chart>