org.fuin.objects4j
Class UserName

java.lang.Object
  extended by org.fuin.objects4j.AbstractStringBasedType<UserName>
      extended by org.fuin.objects4j.UserName
All Implemented Interfaces:
Serializable, Comparable<UserName>

@Immutable
public final class UserName
extends AbstractStringBasedType<UserName>

User name with the following rules.

See Also:
Serialized Form

Constructor Summary
UserName(String userName)
          Constructor with user name.
 
Method Summary
 String toString()
           
 
Methods inherited from class org.fuin.objects4j.AbstractStringBasedType
compareTo, equals, hashCode, length
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserName

@Requires(value="(userName!=null) && ValidUserNameValidator.isValid(userName)")
public UserName(String userName)
Constructor with user name.

Parameters:
userName - User name.
Method Detail

toString

public String toString()
Specified by:
toString in class AbstractStringBasedType<UserName>


Copyright © 2011 Future Invent Informationsmanagement GmbH. All Rights Reserved.