org.glassfish.jersey.examples.flight.model
Class AircraftType

java.lang.Object
  extended by org.glassfish.jersey.examples.flight.model.AircraftType

public class AircraftType
extends Object

Aircraft type.

Author:
Marek Potociar (marek.potociar at oracle.com)

Constructor Summary
AircraftType()
           
AircraftType(String manufacturer, String model, int capacity)
           
 
Method Summary
 boolean equals(Object o)
           
 int getCapacity()
           
 String getManufacturer()
           
 String getModel()
           
 int hashCode()
           
 void setCapacity(int capacity)
           
 void setManufacturer(String manufacturer)
           
 void setModel(String model)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AircraftType

public AircraftType()

AircraftType

public AircraftType(String manufacturer,
                    String model,
                    int capacity)
Method Detail

getManufacturer

public String getManufacturer()

setManufacturer

public void setManufacturer(String manufacturer)

getModel

public String getModel()

setModel

public void setModel(String model)

getCapacity

public int getCapacity()

setCapacity

public void setCapacity(int capacity)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.