Home | History | Annotate | Download | only in EncodedValue

Lines Matching refs:ValueType

33 public enum ValueType {
53 * A map to facilitate looking up a <code>ValueType</code> by byte value
55 private final static SparseArray<ValueType> valueTypeIntegerMap;
59 valueTypeIntegerMap = new SparseArray<ValueType>(16);
61 for (ValueType valueType : ValueType.values()) {
62 valueTypeIntegerMap.put(valueType.value, valueType);
67 * The byte value for this ValueType
71 private ValueType(byte value) {
76 * Converts a byte value to the corresponding ValueType enum value,
77 * or null if the value isn't a valid ValueType value
79 * @param valueType the byte value to convert to a ValueType
80 * @return the ValueType enum value corresponding to valueType, or null
81 * if not a valid ValueType value
83 public static ValueType fromByte(byte valueType) {
84 return valueTypeIntegerMap.get(valueType);