UPDATE Shape with a new attribute

master
Mathis 2022-05-03 16:31:17 +02:00
parent d1d1a17e4b
commit b72112ad8d
1 changed files with 16 additions and 1 deletions

View File

@ -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;
}
}