File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
modules/swagger-codegen/src/main/resources/Java/libraries/common Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change
1
+ /**
2
+ * { {^description} }Gets or Sets { {{name} }}{ {/description} }{ {#description} }{ {{description} }}{ {/description} }
3
+ */
4
+ public enum { {#datatypeWithEnum} }{ {.} }{ {/datatypeWithEnum} }{ {^datatypeWithEnum} }{ {classname} }{ {/datatypeWithEnum} } {
5
+ {{#allowableValues} }{ {#enumVars} }@SerializedName({ {#isInteger} }"{ {/isInteger} }{ {#isDouble} }"{ {/isDouble} }{ {#isLong} }"{ {/isLong} }{ {#isFloat} }"{ {/isFloat} }{ {{value} }}{ {#isInteger} }"{ {/isInteger} }{ {#isDouble} }"{ {/isDouble} }{ {#isLong} }"{ {/isLong} }{ {#isFloat} }"{ {/isFloat} })
6
+ { {{name} }}({ {{value} }}){ {^-last} },
7
+
8
+ { {/-last} }{ {#-last} };{ {/-last} }{ {/enumVars} }{ {/allowableValues} }
9
+
10
+ private { {datatype} } value;
11
+
12
+ { {#datatypeWithEnum} }{ {.} }{ {/datatypeWithEnum} }{ {^datatypeWithEnum} }{ {classname} }{ {/datatypeWithEnum} }({ {datatype} } value) {
13
+ this.value = value;
14
+ }
15
+
16
+ @Override
17
+ public String toString() {
18
+ return String.valueOf(value);
19
+ }
20
+ }
You can’t perform that action at this time.
0 commit comments