Get a cursor by its internal value. @param value the value @return the matching type @deprecated Magic value
(byte value)
| 279 | * @deprecated Magic value |
| 280 | */ |
| 281 | @Deprecated |
| 282 | @Nullable |
| 283 | public static Type byValue(byte value) { |
| 284 | for (Type t : values()) { |
| 285 | if (t.value == value) return t; |
| 286 | } |
| 287 | return null; |
| 288 | } |
| 289 | } |
| 290 | |
| 291 | } |