Interface TypeReference

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int compareTo​(java.lang.CharSequence o)
      Compare this TypeReference to another TypeReference, or more generally to another CharSequence.
      boolean equals​(java.lang.Object o)
      Compares this TypeReference to another TypeReference, or more generally to another CharSequence for equality.
      java.lang.String getType()
      Gets the string representation of the referenced type.
      int hashCode()
      Returns a hashcode for this TypeReference.
      • Methods inherited from interface java.lang.CharSequence

        charAt, chars, codePoints, length, subSequence, toString
    • Method Detail

      • getType

        @Nonnull
        java.lang.String getType()
        Gets the string representation of the referenced type. The returned string will be a TypeDescriptor, as defined in the dex file specification
        Returns:
        The string representation of the referenced type.
      • hashCode

        int hashCode()
        Returns a hashcode for this TypeReference. This is defined to be getType().hashCode()
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        The hash code value for this TypeReference
      • equals

        boolean equals​(@Nullable
                       java.lang.Object o)
        Compares this TypeReference to another TypeReference, or more generally to another CharSequence for equality. This TypeReference is equal to a CharSequence iff this.getType().equals(other.toString()). Equivalently, This TypeReference is equal to another TypeReference iff this.getType().equals(other.getType()).
        Overrides:
        equals in class java.lang.Object
        Parameters:
        o - The object to be compared for equality with this TypeReference
        Returns:
        true if the specified object is equal to this TypeReference
      • compareTo

        int compareTo​(@Nonnull
                      java.lang.CharSequence o)
        Compare this TypeReference to another TypeReference, or more generally to another CharSequence. The comparison is defined to be this.getType().compareTo(other.toString())
        Specified by:
        compareTo in interface java.lang.Comparable<java.lang.CharSequence>
        Parameters:
        o - The CharSequence to compare with this TypeReference
        Returns:
        An integer representing the result of the comparison