ikrs.httpd
Class HTTPConnectionUserID

java.lang.Object
  extended by ikrs.httpd.HTTPConnectionUserID
All Implemented Interfaces:
java.lang.Comparable

public class HTTPConnectionUserID
extends java.lang.Object
implements java.lang.Comparable

This is the internally used HTTPConnectionUserID implementation. Actually it's just a wrapper for the default ConnectionUserID to enable later mods.


Constructor Summary
HTTPConnectionUserID(ConnectionUserID<ConnectionUserID> id)
           
 
Method Summary
 int compareTo(HTTPConnectionUserID userID)
          This method compares this connection user ID with the given ID.
 int compareTo(java.lang.Object o)
           
 boolean equals(HTTPConnectionUserID userID)
          This method compares this connection user ID with the given ID.
 boolean equals(java.lang.Object o)
          This method compares this connection user ID with the given object.
 java.lang.String toString()
          Converts this connection user ID to a string, where the strings are equal if (and only if) both ID are equal.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HTTPConnectionUserID

public HTTPConnectionUserID(ConnectionUserID<ConnectionUserID> id)
                     throws java.lang.NullPointerException
Throws:
java.lang.NullPointerException
Method Detail

equals

public boolean equals(java.lang.Object o)
This method compares this connection user ID with the given object.

Overrides:
equals in class java.lang.Object
Returns:
true if and only if this and the given object are equal.
See Also:
java.lang.Object.equals( Object )

equals

public boolean equals(HTTPConnectionUserID userID)
This method compares this connection user ID with the given ID.

Returns:
true if and only if this and the given ID are equal.
See Also:
java.lang.Object.equals( Object )

compareTo

public int compareTo(HTTPConnectionUserID userID)
This method compares this connection user ID with the given ID. If this ID is 'smaller' than the passed ID, the method returns a negative integer. If this ID is 'bigger' than the passed ID, the method returns a positive integer. If this ID equals the passed ID, the method returns 0.

Returns:
A value indicating the order of the two ID.
See Also:
equals( ConnectionUserID )

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

toString

public java.lang.String toString()
Converts this connection user ID to a string, where the strings are equal if (and only if) both ID are equal.

Overrides:
toString in class java.lang.Object