Enum Constant and Description |
---|
DAYS
The number of complete days as unit.
|
DAYS_IGNORE_YEAR
The number of complete days as unit ignoring years.
|
YEARS
The number of complete years as unit.
|
Modifier and Type | Method and Description |
---|---|
static DateUnit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DateUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateUnit DAYS
public static final DateUnit DAYS_IGNORE_YEAR
public static final DateUnit YEARS
public static DateUnit valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static DateUnit[] values()
for (DateUnit c : DateUnit.values()) System.out.println(c);
Copyright © 2017, 2025, Oracle and/or its affiliates. All rights reserved.