Interface FieldEncodedValue
- All Superinterfaces:
Comparable<EncodedValue>, EncodedValue
- All Known Implementing Classes:
BaseFieldEncodedValue, BuilderEncodedValues.BuilderFieldEncodedValue, DexBackedFieldEncodedValue, EncodedValueRewriter.RewrittenFieldEncodedValue, ImmutableFieldEncodedValue
This class represents an encoded field value.
-
Method Summary
Methods inherited from interface EncodedValue
getValueType
-
Method Details
-
getValue
Gets the field value.- Returns:
- the field value as a FieldReference
-
hashCode
-
equals
Compares this FieldEncodedValue to another FieldEncodedValue for equality. This FieldEncodedValue is equal to another FieldEncodedValue if the values returned by getValue() are equal. -
compareTo
Compare this FieldEncodedValue to another EncodedValue. The comparison is first done on the return values of getValueType(). If the other value is another FieldEncodedValue, the return values of getValue() are compared.- Specified by:
compareToin interfaceComparable<EncodedValue>- Parameters:
o- The EncodedValue to compare with this FieldEncodedValue- Returns:
- An integer representing the result of the comparison
-