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