public abstract class Occurances extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static Occurances |
NONE |
static Occurances |
ONE_PLUS
At least one is required.
|
static Occurances |
OPTIONAL
Optional, may be zero or one, but not more.
|
static Occurances |
REQUIRED
Exactly one is required.
|
static Occurances |
UNBOUNDED
An unbounded number, zero or more.
|
public static final Occurances UNBOUNDED
public static final Occurances OPTIONAL
public static final Occurances REQUIRED
public static final Occurances ONE_PLUS
public static final Occurances NONE
public java.lang.String getName()
public java.lang.String toString()
toString in class java.lang.Objectpublic abstract boolean inRange(int count)
count - the number of items to check. Should be zero or greater.