Package org.jf.dexlib2.iface.value
Interface StringEncodedValue
-
- All Superinterfaces:
java.lang.Comparable<EncodedValue>,EncodedValue
- All Known Implementing Classes:
BaseStringEncodedValue,BuilderEncodedValues.BuilderStringEncodedValue,DexBackedStringEncodedValue,ImmutableStringEncodedValue
public interface StringEncodedValue extends EncodedValue
This class represents an encoded string value.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intcompareTo(EncodedValue o)Compare this StringEncodedValue to another EncodedValue.booleanequals(java.lang.Object o)Compares this StringEncodedValue to another StringEncodedValue for equality.java.lang.StringgetValue()Gets the string value.inthashCode()Returns a hashcode for this EncodedStringValue.-
Methods inherited from interface org.jf.dexlib2.iface.value.EncodedValue
getValueType
-
-
-
-
Method Detail
-
getValue
@Nonnull java.lang.String 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();- Overrides:
hashCodein classjava.lang.Object- Returns:
- The hash code value for this EncodedStringValue
-
equals
boolean equals(@Nullable java.lang.Object o)Compares this StringEncodedValue to another StringEncodedValue for equality. This StringEncodedValue is equal to another StringEncodedValue if the values returned by getValue() are equal.- Overrides:
equalsin classjava.lang.Object- Parameters:
o- The object to be compared for equality with this StringEncodedValue- Returns:
- true if the specified object is equal to this StringEncodedValue
-
compareTo
int compareTo(@Nonnull EncodedValue o)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 interfacejava.lang.Comparable<EncodedValue>- Parameters:
o- The EncodedValue to compare with this StringEncodedValue- Returns:
- An integer representing the result of the comparison
-
-