org.rometools.feed.module.georss.geometries
Class Position

java.lang.Object
  extended by org.rometools.feed.module.georss.geometries.Position
All Implemented Interfaces:
Serializable, Cloneable

public class Position
extends Object
implements Cloneable, Serializable

A two dimensional position represented by latitude and longitude decimal degrees in WGS84

Author:
runaas
See Also:
Serialized Form

Constructor Summary
Position()
          Creates a new instance of Position
Position(double latitude, double longitude)
          Create Position from a pair of coordinate values
 
Method Summary
 Object clone()
           
 boolean equals(Object obj)
           
 double getLatitude()
           
 double getLongitude()
           
 void setLatitude(double latitude)
          Set the latitude
 void setLongitude(double longitude)
          Set the longitude
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Position

public Position()
Creates a new instance of Position


Position

public Position(double latitude,
                double longitude)
Create Position from a pair of coordinate values

Parameters:
latitude -
longitude -
Method Detail

clone

public Object clone()
             throws CloneNotSupportedException
Overrides:
clone in class Object
Throws:
CloneNotSupportedException

equals

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

getLatitude

public double getLatitude()
Returns:
latitude

setLatitude

public void setLatitude(double latitude)
Set the latitude

Parameters:
latitude - the new latitude

getLongitude

public double getLongitude()
Returns:
longitude

setLongitude

public void setLongitude(double longitude)
Set the longitude

Parameters:
longitude - the new longitude


Copyright © 2013 ROME Project. All Rights Reserved.