UPDATE Shape with a new attribute
parent
d1d1a17e4b
commit
b72112ad8d
|
@ -1,5 +1,20 @@
|
|||
package latice.model;
|
||||
|
||||
public enum Shape {
|
||||
BIRD, DOLPHIN, FLOWER, LEAF, LIZARD, TORTOISE;
|
||||
BIRD("bird"),
|
||||
DOLPHIN("dolphin"),
|
||||
FLOWER("flower"),
|
||||
feather("feather"),
|
||||
GECKO("gecko"),
|
||||
TURTLE("turtle");
|
||||
|
||||
private String stringShape;
|
||||
|
||||
Shape(String stringShape) {
|
||||
this.stringShape = stringShape;
|
||||
}
|
||||
|
||||
public String getStringShape() {
|
||||
return this.stringShape;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue