Skip to content

Package: SspAnswer

SspAnswer

nameinstructionbranchcomplexitylinemethod
static {...}
M: 0 C: 21
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 4
100%
M: 0 C: 1
100%
toString()
M: 0 C: 5
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%

Coverage

1: /*
2: * Copyright © 2021-2023 Fachhochschule für die Wirtschaft (FHDW) Hannover
3: *
4: * This file is part of ipspiel23-Ssp.
5: *
6: * Ipspiel23-Ssp is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
7: * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
8: * version.
9: *
10: * Ipspiel23-Ssp is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
11: * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12: *
13: * You should have received a copy of the GNU General Public License along with ipspiel23-Ssp. If not, see
14: * <http://www.gnu.org/licenses/>.
15: */
16: package de.fhdw.gaming.ipspiel23.ssp.domain.impl.outcomes;
17:
18: import java.util.Locale;
19:
20: /** Represents possible answers in a Ssp Game.
21: *
22: * @author DW
23: *
24: */
25: public enum SspAnswer {
26:
27: /**
28: * Represents the answer "stone".
29: */
30: PAPER,
31:
32: /**
33: * Represents the answer "paper".
34: */
35: STONE,
36:
37: /**
38: * Represents the answer "scissors".
39: */
40: SCISSORS;
41:
42: @Override
43: public String toString() {
44: return this.name().toLowerCase(Locale.ROOT);
45: }
46: }