MyLocation.java :  » App » whimper » edu » toronto » whimper » GeneralObjects » Android Open Source

Android Open Source » App » whimper 
whimper » edu » toronto » whimper » GeneralObjects » MyLocation.java
package edu.toronto.whimper.GeneralObjects;

public class MyLocation {

    private double latitude; 
  private double longitude;    
  
    public MyLocation(double latitude, double longitude)
    {        
        this.latitude = latitude;  
        this.longitude = longitude;
    }
    @Override
    public String toString()
    {
        return "Latitude: " + Double.toString(getLatitude()) +" Longitude: " + Double.toString(getLongitude());
    }

    /**
     * @return the Longitude
     */
    public double getLongitude() {
        return longitude;
    }

    /**
     * @param longitude
     */
    public void setLongitude(double longi) {
        this.longitude = longi;
    }
    
    /**
     * @return the latitude
     */
    public double getLatitude() {
        return latitude;
    }

    /**
     * @param latitude
     */
    public void setLatitude(double lati) {
        this.latitude = lati;
    }
    
    
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.