-
Notifications
You must be signed in to change notification settings - Fork 151
Expand file tree
/
Copy pathAlignment.java
More file actions
62 lines (50 loc) · 1.26 KB
/
Alignment.java
File metadata and controls
62 lines (50 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
* Adyen Terminal API
*
* The version of the OpenAPI document: 1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.adyen.model.tapi;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.*;
import java.util.logging.Logger;
/** Gets or Sets Alignment */
public enum Alignment {
CENTRED("Centred"),
JUSTIFIED("Justified"),
LEFT("Left"),
RIGHT("Right");
private static final Logger LOG = Logger.getLogger(Alignment.class.getName());
private String value;
Alignment(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static Alignment fromValue(String value) {
for (Alignment b : Alignment.values()) {
if (b.value.equals(value)) {
return b;
}
}
// handling unexpected value
LOG.warning(
"Alignment: unexpected enum value '"
+ value
+ "' - Supported values are "
+ Arrays.toString(Alignment.values()));
return null;
}
}