From b72112ad8d2fef63de4939397f068c0e0a4e83ee Mon Sep 17 00:00:00 2001 From: Mathis Date: Tue, 3 May 2022 16:31:17 +0200 Subject: [PATCH] UPDATE Shape with a new attribute --- src/main/java/latice/model/Shape.java | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/main/java/latice/model/Shape.java b/src/main/java/latice/model/Shape.java index 1647219..29c750a 100644 --- a/src/main/java/latice/model/Shape.java +++ b/src/main/java/latice/model/Shape.java @@ -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; + } }