Java Reference
In-Depth Information
public class Location {
private final static int FIELD_VERSION = 1;
private final static int FIELD_LOCATION = 2;
private final static int FIELD_FORECAST = 3;
public final static int NO_ID = -1;
private final static int version = 1;
private String location;
private String forecast;
private int recordId;
/** Creates a new instance of Location */
public Location(String l, String f) {
location = l;
forecast = f;
recordId = NO_ID;
}
public Location(byte[] b) {
fromBytes(b);
recordId = NO_ID;
}
public Location(byte[] b, int id) {
fromBytes(b);
recordId = id;
}
public String getLocation() {
if (location != null) {
return location;
} else {
return "";
}
}
public void setLocation(String l) {
location = l;
}
 
Search WWH ::




Custom Search