public static enum Coupon.TemporalUnit extends Enum<Coupon.TemporalUnit>
| Modifier and Type | Method and Description |
|---|---|
static Coupon.TemporalUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Coupon.TemporalUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Coupon.TemporalUnit day
public static final Coupon.TemporalUnit week
public static final Coupon.TemporalUnit month
public static final Coupon.TemporalUnit year
public static Coupon.TemporalUnit[] values()
for (Coupon.TemporalUnit c : Coupon.TemporalUnit.values()) System.out.println(c);
public static Coupon.TemporalUnit 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 nullCopyright © 2012-2020. All Rights Reserved.