-
Notifications
You must be signed in to change notification settings - Fork 197
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
178 additions
and
44 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package domain.target; | ||
|
||
import java.util.ArrayList; | ||
import java.util.Arrays; | ||
import java.util.List; | ||
|
||
public class AssetTrustLevel { | ||
|
||
public static final String Maybe = "Maybe"; | ||
public static final String Confirm = "Confirm"; | ||
public static final String NonTarget = "NonTarget"; | ||
public static final String Cloud = "Cloud"; | ||
|
||
private static final String[] AssetTrustLevelArray = {Maybe,Confirm,NonTarget,Cloud}; | ||
private static List<String> AssetTrustLevelList = new ArrayList<>(Arrays.asList(AssetTrustLevelArray)); | ||
|
||
public static List<String> getLevelList(){ | ||
return AssetTrustLevelList; | ||
} | ||
|
||
|
||
public static String getNextLevel(String level) { | ||
int index = AssetTrustLevelList.indexOf(level); | ||
int nextIndex = (index + 1) % AssetTrustLevelList.size(); | ||
String nextTrustLevel = AssetTrustLevelList.get(nextIndex); | ||
return nextTrustLevel; | ||
} | ||
|
||
} |
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
Oops, something went wrong.