public class Age extends Object implements Comparable<Age>
Voice
Modifier and Type | Field and Description |
---|---|
static Age |
CHILD
Age roughly up to 12 years.
|
static Age |
DONT_CARE
Matches against any Age.
|
static Age |
MIDDLE_ADULT
Age roughly 40 to 60 years.
|
private String |
name |
static Age |
NEUTRAL
An Age that is indeterminate.
|
private static int |
nextOrdinal |
static Age |
OLDER_ADULT
Age roughly 60 years and up.
|
private int |
ordinal |
static Age |
TEENAGER
Age roughly 13 to 19 years.
|
static Age |
YOUNGER_ADULT
Age roughly 20 to 40 years.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Age age)
Compare two ages.
|
String |
toString()
Provide a human readable string that describes the age.
|
private static int nextOrdinal
private final int ordinal
public static final Age YOUNGER_ADULT
public static final Age MIDDLE_ADULT
public static final Age OLDER_ADULT
public int compareTo(Age age)
compareTo
in interface Comparable<Age>
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses