Package org.jf.dexlib2.iface.value
Interface StringEncodedValue
- All Superinterfaces:
Comparable<EncodedValue>,EncodedValue
- All Known Implementing Classes:
BaseStringEncodedValue,BuilderEncodedValues.BuilderStringEncodedValue,DexBackedStringEncodedValue,ImmutableStringEncodedValue
This class represents an encoded string value.
-
Method Summary
Methods inherited from interface org.jf.dexlib2.iface.value.EncodedValue
getValueType
-
Method Details
-
getValue
Gets the string value.- Returns:
- the string value
-
hashCode
int hashCode()Returns a hashcode for this EncodedStringValue. This hashCode is defined to be the following:int hashCode = getValue().hashCode(); -
equals
Compares this StringEncodedValue to another StringEncodedValue for equality. This StringEncodedValue is equal to another StringEncodedValue if the values returned by getValue() are equal. -
compareTo
Compare this StringEncodedValue to another EncodedValue. The comparison is first done on the return values of getValueType(). If the other value is another StringEncodedValue, the return values of getValue() are compared.- Specified by:
compareToin interfaceComparable<EncodedValue>- Parameters:
o- The EncodedValue to compare with this StringEncodedValue- Returns:
- An integer representing the result of the comparison
-