Get the LOAD sub token @param display @return the LOAD sub token
(CharacterDisplay display)
| 90 | * @return the LOAD sub token |
| 91 | */ |
| 92 | public static String getLoadToken(CharacterDisplay display) |
| 93 | { |
| 94 | Load load = display.getLoadType(); |
| 95 | |
| 96 | switch (load) |
| 97 | { |
| 98 | case LIGHT: |
| 99 | return CoreUtility.capitalizeFirstLetter(Load.LIGHT.toString()); |
| 100 | |
| 101 | case MEDIUM: |
| 102 | return CoreUtility.capitalizeFirstLetter(Load.MEDIUM.toString()); |
| 103 | |
| 104 | case HEAVY: |
| 105 | return CoreUtility.capitalizeFirstLetter(Load.HEAVY.toString()); |
| 106 | |
| 107 | case OVERLOAD: |
| 108 | return CoreUtility.capitalizeFirstLetter(Load.OVERLOAD.toString()); |
| 109 | |
| 110 | default: |
| 111 | Logging.errorPrint( |
| 112 | "Unknown load constant detected in TokenTotal.getLoadToken, the constant was " + load + '.'); |
| 113 | |
| 114 | return "Unknown"; |
| 115 | } |
| 116 | } |
| 117 | |
| 118 | /** |
| 119 | * Get the VALUE sub token |
no test coverage detected