Class UriCanonicalizer.CanonicalKey

  • Enclosing class:
    UriCanonicalizer

    static final class UriCanonicalizer.CanonicalKey
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) char[] mChars
      Array containing characters of the canonicalized String.
      (package private) int mHash
      Hash of the URI string, calculated using fast(er) hash function (compared to regular String).
      (package private) int mLength
      Length of canonicalized String
    • Constructor Summary

      Constructors 
      Constructor Description
      CanonicalKey​(char[] buffer, int len)  
      CanonicalKey​(char[] buffer, int len, int hashCode)  
    • Field Detail

      • mChars

        final char[] mChars
        Array containing characters of the canonicalized String.
      • mLength

        final int mLength
        Length of canonicalized String
      • mHash

        final int mHash
        Hash of the URI string, calculated using fast(er) hash function (compared to regular String).
    • Constructor Detail

      • CanonicalKey

        public CanonicalKey​(char[] buffer,
                            int len)
      • CanonicalKey

        public CanonicalKey​(char[] buffer,
                            int len,
                            int hashCode)
    • Method Detail

      • calcKeyHash

        public static int calcKeyHash​(char[] buffer,
                                      int len)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object