- java.lang.Object
-
- net.sourceforge.urin.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 creatingUserInfo
s.
-
-
-
Method Detail
-
userInfo
public static UserInfo userInfo(java.lang.String userInfo)
Factory method for creatingUserInfo
s.- Parameters:
userInfo
- anyString
to represent as aUserInfo
.- Returns:
- a
UserInfo
representing the givenString
.
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-