A partir de un par de clases que encontré en un ejemplo, estoy tratando de entender su funcionamiento y veo algunos conceptos que aplican y me gustaria saber su opinión para ver si están de acuerdo conmigo.
En la siguiente clase veo la implementación de una clase Serializable, con Setter's y Getter's, sobre carga de metodos (Restaurant), el metodo .this que aun no entiendo su funcion

Código PHP:
package samples.restaurant;
import java.io.Serializable;
public class Restaurant implements Serializable {
private int restaurantId;
private String name;
private String address;
private String city;
private String zip;
private String phone;
private String link;
private String image;
private String description;
private String review;
private double mapX;
private double mapY;
public Restaurant() {
}
public Restaurant(int restaurantId, String name, String address, String city, String zip, String phone, String link, String image, String description, String review) {
this.restaurantId = restaurantId;
this.name = name;
this.address = address;
this.city = city;
this.zip = zip;
this.phone = phone;
this.link = link;
this.image = image;
this.description = description;
this.review = review;
}
public Restaurant(int restaurantId, String name, String address, String city, String zip, String phone, String link, String image, String description, String review, double mapX, double mapY) {
this.restaurantId = restaurantId;
this.name = name;
this.address = address;
this.city = city;
this.zip = zip;
this.phone = phone;
this.link = link;
this.image = image;
this.description = description;
this.review = review;
this.mapX = mapX;
this.mapY = mapY;
}
public int getRestaurantId() {
return restaurantId;
}
public void setRestaurantId(int restaurantId) {
this.restaurantId = restaurantId;
}
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;
}
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public String getZip() {
return zip;
}
public void setZip(String zip) {
this.zip = zip;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public String getLink() {
return link;
}
public void setLink(String link) {
this.link = link;
}
public String getImage() {
return image;
}
public void setImage(String image) {
this.image = image;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getReview() {
return review;
}
public void setReview(String review) {
this.review = review;
}
public double getMapX() {
return mapX;
}
public void setMapX(double mapX) {
this.mapX = mapX;
}
public double getMapY() {
return mapY;
}
public void setMapY(double mapY) {
this.mapY = mapY;
}
}
