ccc.api.types
Class Username

java.lang.Object
  extended by ccc.api.types.Username
All Implemented Interfaces:
java.io.Serializable

public final class Username
extends java.lang.Object
implements java.io.Serializable

A username.

Author:
Civic Computing Ltd.
See Also:
Serialized Form

Field Summary
static int MIN_LENGTH
          MIN_LENGTH : int.
static java.lang.String VALID_CHARACTERS
          VALID_CHARACTERS : String.
 
Constructor Summary
Username(java.lang.String value)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object obj)
          
 int hashCode()
          
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

VALID_CHARACTERS

public static final java.lang.String VALID_CHARACTERS
VALID_CHARACTERS : String.

See Also:
Constant Field Values

MIN_LENGTH

public static final int MIN_LENGTH
MIN_LENGTH : int.

See Also:
Constant Field Values
Constructor Detail

Username

public Username(java.lang.String value)
Constructor.

Parameters:
value - The username, represented as a string.
Method Detail

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 obj)

Overrides:
equals in class java.lang.Object


Copyright © 2010. All Rights Reserved.