-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
96 additions
and
39 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/main/java/io/github/givimad/rustpotter_java/VADMode.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Automatically generated by flapigen | ||
package io.github.givimad.rustpotter_java; | ||
|
||
/** | ||
* Supported vad modes. | ||
*/ | ||
public enum VADMode { | ||
EASY(0), | ||
MEDIUM(1), | ||
HARD(2); | ||
|
||
private final int value; | ||
VADMode(int value) { | ||
this.value = value; | ||
} | ||
public final int getValue() { return value; } | ||
/*package*/ static VADMode fromInt(int x) { | ||
switch (x) { | ||
case 0: return EASY; | ||
case 1: return MEDIUM; | ||
case 2: return HARD; | ||
default: throw new Error("Invalid value for enum VADMode: " + x); | ||
} | ||
} | ||
} |