public static enum DateInterval.Unit extends Enum<DateInterval.Unit>
| Enum Constant and Description |
|---|
DAYS |
DAYS_EXCLUDE_MONTHS_AND_YEARS |
DAYS_EXCLUDE_YEARS |
MONTHS |
MONTHS_EXCLUDE_YEARS |
MONTHS_FRACTIONAL |
MONTHS_FRACTIONAL_EXCLUDE_YEARS |
WEEKS |
WEEKS_FRACTIONAL |
YEARS |
YEARS_FRACTIONAL |
| Modifier and Type | Method and Description |
|---|---|
static DateInterval.Unit |
getUnit(String unitName) |
static DateInterval.Unit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateInterval.Unit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateInterval.Unit YEARS
public static final DateInterval.Unit MONTHS
public static final DateInterval.Unit WEEKS
public static final DateInterval.Unit DAYS
public static final DateInterval.Unit DAYS_EXCLUDE_MONTHS_AND_YEARS
public static final DateInterval.Unit MONTHS_EXCLUDE_YEARS
public static final DateInterval.Unit DAYS_EXCLUDE_YEARS
public static final DateInterval.Unit YEARS_FRACTIONAL
public static final DateInterval.Unit MONTHS_FRACTIONAL
public static final DateInterval.Unit WEEKS_FRACTIONAL
public static final DateInterval.Unit MONTHS_FRACTIONAL_EXCLUDE_YEARS
public static DateInterval.Unit[] values()
for (DateInterval.Unit c : DateInterval.Unit.values()) System.out.println(c);
public static DateInterval.Unit valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static DateInterval.Unit getUnit(String unitName)
Copyright © 2004–2019 OpenL Tablets. All rights reserved.