Package org.gvsig.timesupport
Interface AbsoluteIntervalType
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
AbsoluteIntervalTypegetType() method and the ==
operator.
- Version:
- $Id$
- Author:
- gvSIG Team
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetName()Gets a description of theAbsoluteIntervalType.intgetType()Gets the code of the type, that is one of the constants defined in theAbsoluteIntervalTypeclass.
-
Field Details
-
YEARS
static final int YEARS- See Also:
-
MONTHS
static final int MONTHS- See Also:
-
WEEKS
static final int WEEKS- See Also:
-
DAYS
static final int DAYS- See Also:
-
HOURS
static final int HOURS- See Also:
-
MINUTES
static final int MINUTES- See Also:
-
SECONDS
static final int SECONDS- See Also:
-
MILLIS
static final int MILLIS- See Also:
-
-
Method Details
-
getType
int getType()Gets the code of the type, that is one of the constants defined in theAbsoluteIntervalTypeclass.- Returns:
- the type code
-
getName
String getName()Gets a description of theAbsoluteIntervalType.- Returns:
- the name of the type
-