Class BaseTypeReference

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      char charAt​(int index)  
      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.
      int hashCode()
      Returns a hashcode for this TypeReference.
      int length()  
      java.lang.CharSequence subSequence​(int start, int end)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.CharSequence

        chars, codePoints
    • Constructor Detail

      • BaseTypeReference

        public BaseTypeReference()
    • Method Detail

      • hashCode

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

        public boolean equals​(java.lang.Object o)
        Description copied from interface: TypeReference
        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()).
        Specified by:
        equals in interface TypeReference
        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

        public int compareTo​(@Nonnull
                             java.lang.CharSequence o)
        Description copied from interface: TypeReference
        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>
        Specified by:
        compareTo in interface TypeReference
        Parameters:
        o - The CharSequence to compare with this TypeReference
        Returns:
        An integer representing the result of the comparison
      • length

        public int length()
        Specified by:
        length in interface java.lang.CharSequence
      • charAt

        public char charAt​(int index)
        Specified by:
        charAt in interface java.lang.CharSequence
      • subSequence

        public java.lang.CharSequence subSequence​(int start,
                                                  int end)
        Specified by:
        subSequence in interface java.lang.CharSequence
      • toString

        @Nonnull
        public java.lang.String toString()
        Specified by:
        toString in interface java.lang.CharSequence
        Overrides:
        toString in class java.lang.Object