Serializable, Comparable<ReleaseDatePrecision>public enum ReleaseDatePrecision extends Enum<ReleaseDatePrecision>
| Modifier and Type | Method | Description |
|---|---|---|
String |
getPrecision() |
Get the release date precision as a string.
|
static ReleaseDatePrecision |
keyOf(String precision) |
|
static ReleaseDatePrecision |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static ReleaseDatePrecision[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReleaseDatePrecision DAY
public static final ReleaseDatePrecision MONTH
public static final ReleaseDatePrecision YEAR
public final String precision
public static ReleaseDatePrecision[] values()
for (ReleaseDatePrecision c : ReleaseDatePrecision.values()) System.out.println(c);
public static ReleaseDatePrecision 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 ReleaseDatePrecision keyOf(String precision)
public String getPrecision()
Copyright © 2019. All rights reserved.