public interface AbsoluteIntervalType
Identifies a field, such as year or month, in a chronology-neutral way.
Instances of this class are singletons and they can be compared using the
AbsoluteIntervalType
getType()
method and the ==
operator.
Modifier and Type | Field and Description |
---|---|
static int |
DAYS |
static int |
HOURS |
static int |
MILLIS |
static int |
MINUTES |
static int |
MONTHS |
static int |
SECONDS |
static int |
WEEKS |
static int |
YEARS |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Gets a description of the
AbsoluteIntervalType . |
int |
getType()
Gets the code of the type, that is one of the constants defined
in the
AbsoluteIntervalType class. |
static final int YEARS
static final int MONTHS
static final int WEEKS
static final int DAYS
static final int HOURS
static final int MINUTES
static final int SECONDS
static final int MILLIS
int getType()
AbsoluteIntervalType
class.String getName()
AbsoluteIntervalType
.