Class UserInfo


  • public final class UserInfo
    extends java.lang.Object
    A user information component of a URI. Immutable and thread safe.
    See Also:
    RFC 3986 - User Information
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object object)  
      int hashCode()  
      java.lang.String toString()  
      static UserInfo userInfo​(java.lang.String userInfo)
      Factory method for creating UserInfos.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • userInfo

        public static UserInfo userInfo​(java.lang.String userInfo)
        Factory method for creating UserInfos.
        Parameters:
        userInfo - any String to represent as a UserInfo.
        Returns:
        a UserInfo representing the given String.
      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

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