Get the scale given the raw value. @param value The raw scale @return The enum scale, or null for an invalid input @deprecated Magic value
(byte value)
| 35 | * @deprecated Magic value |
| 36 | */ |
| 37 | @Deprecated |
| 38 | @Nullable |
| 39 | public static Scale valueOf(byte value) { |
| 40 | switch (value) { |
| 41 | case 0: return CLOSEST; |
| 42 | case 1: return CLOSE; |
| 43 | case 2: return NORMAL; |
| 44 | case 3: return FAR; |
| 45 | case 4: return FARTHEST; |
| 46 | default: return null; |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | /** |
| 51 | * Get the raw value of this scale level. |
no outgoing calls
no test coverage detected