public final class JFPUserName extends Object implements Serializable, Comparable<JFPUserName>
Constructor and Description |
---|
JFPUserName(String in_actual)
Construct a name, raising
JFPExceptionAuthentication if the name
is not valid according to validName(String) . |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(JFPUserName o) |
boolean |
equals(Object obj) |
String |
getActual() |
int |
hashCode() |
String |
toString() |
static boolean |
validName(String name) |
public JFPUserName(String in_actual) throws JFPExceptionAuthentication
JFPExceptionAuthentication
if the name
is not valid according to validName(String)
.in_actual
- The actual name.JFPExceptionAuthentication
- On invalid names.public static boolean validName(String name)
name
- The name.true
iff
length(name) > 0 ∧ ∀i. isLetter(name(i)) ∨ isDigit(name(i)) ∨ name(i) = '_'
.public int compareTo(@Nullable JFPUserName o)
compareTo
in interface Comparable<JFPUserName>
public String getActual()
Copyright © 2015 <code@io7m.com> http://io7m.com