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