public class Name extends SimpleStreamableObject implements Comparable<Name>
Streamable.Closure| Modifier and Type | Field and Description |
|---|---|
static Name |
BLANK
A blank name for use in situations where it is needed.
|
| Constructor and Description |
|---|
Name(String name)
Creates a name instance with the supplied name.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Name other) |
boolean |
equals(Object other) |
String |
getNormal()
Returns the normalized version of this name.
|
int |
hashCode() |
boolean |
isBlank()
Returns true if this name is blank, false if it contains data.
|
static boolean |
isBlank(Name name)
Returns true if this name is null or blank, false if it contains
useful data.
|
boolean |
isValid()
Returns true if this name is valid.
|
String |
toString()
Returns the unprocessed name as a string.
|
public static final Name BLANK
BLANK.equals(targetName).public Name(String name)
public static boolean isBlank(Name name)
public String getNormal()
public boolean isValid()
public boolean isBlank()
public String toString()
toString in class SimpleStreamableObjectpublic int compareTo(Name other)
compareTo in interface Comparable<Name>Copyright © 2015. All rights reserved.