added memento sample

This commit is contained in:
Ilkka Seppala
2014-08-22 21:31:08 +03:00
parent 128aff2802
commit 13257b8b33
7 changed files with 185 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
package com.iluwatar;
public class StarMementoInternal implements StarMemento {
private StarType type;
private int ageYears;
private int massTons;
public StarType getType() {
return type;
}
public void setType(StarType type) {
this.type = type;
}
public int getAgeYears() {
return ageYears;
}
public void setAgeYears(int ageYears) {
this.ageYears = ageYears;
}
public int getMassTons() {
return massTons;
}
public void setMassTons(int massTons) {
this.massTons = massTons;
}
}