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

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

public class Location
extends Object

2-D location coordinates.

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

Constructor Summary
Location()
           
Location(int x, int y)
           
 
Method Summary
 boolean equals(Object o)
           
 int getX()
           
 int getY()
           
 int hashCode()
           
 void setX(int x)
           
 void setY(int y)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Location

public Location()

Location

public Location(int x,
                int y)
Method Detail

getX

public int getX()

setX

public void setX(int x)

getY

public int getY()

setY

public void setY(int y)

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.