From a048b85ce7de82398b738c7265be207d98f47d44 Mon Sep 17 00:00:00 2001 From: MatthisFauvet Date: Wed, 9 Oct 2024 14:21:12 +0200 Subject: [PATCH] Modified Result as an Enum class --- .../iut_fbleau/raw_api_body/entity/Ply.java | 3 +-- .../raw_api_body/entity/Result.java | 21 +++++-------------- 2 files changed, 6 insertions(+), 18 deletions(-) diff --git a/src/fr/iut_fbleau/raw_api_body/entity/Ply.java b/src/fr/iut_fbleau/raw_api_body/entity/Ply.java index 9225c73..634bf03 100644 --- a/src/fr/iut_fbleau/raw_api_body/entity/Ply.java +++ b/src/fr/iut_fbleau/raw_api_body/entity/Ply.java @@ -2,5 +2,4 @@ package fr.iut_fbleau.raw_api_body.entity; public abstract class Ply { - -} +} \ No newline at end of file diff --git a/src/fr/iut_fbleau/raw_api_body/entity/Result.java b/src/fr/iut_fbleau/raw_api_body/entity/Result.java index 10bc2ef..836c0cd 100644 --- a/src/fr/iut_fbleau/raw_api_body/entity/Result.java +++ b/src/fr/iut_fbleau/raw_api_body/entity/Result.java @@ -3,19 +3,8 @@ package fr.iut_fbleau.raw_api_body.entity; /** * The type Result. */ -public class Result { - - /** - * The constant GAGNE. - */ - public final static int GAGNE = 1; - /** - * The constant EGALITE. - */ - public final static int EGALITE = 0; - /** - * The constant PERDU. - */ - public final static int PERDU = -1; - -} +public enum Result { + GAGNE, + EGALITE, + PERDU; +} \ No newline at end of file