Created
June 16, 2012 06:49
-
-
Save laabroo/2940253 to your computer and use it in GitHub Desktop.
Create Object Place and setter getter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@SuppressWarnings("serial") | |
public class Place implements Serializable { | |
public double lat; | |
public double lon; | |
public double rad; | |
public String name; | |
public String address; | |
public Place() { | |
// TODO Auto-generated constructor stub | |
} | |
public double getLat() { | |
return lat; | |
} | |
public void setLat(double lat) { | |
this.lat = lat; | |
} | |
public double getLon() { | |
return lon; | |
} | |
public void setLon(double lon) { | |
this.lon = lon; | |
} | |
public double getRad() { | |
return rad; | |
} | |
public void setRad(double rad) { | |
this.rad = rad; | |
} | |
public String getName() { | |
return name; | |
} | |
public void setName(String name) { | |
this.name = name; | |
} | |
public String getAddress() { | |
return address; | |
} | |
public void setAddress(String address) { | |
this.address = address; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Membuat Object baru dengan nama Place dan mebuat setter getternya agar Object Overlaynya bisa di masukan dalam object ini.