public enum TemporalUnit extends Enum<TemporalUnit>
| Enum Constant and Description |
|---|
DAY |
HOUR |
MINUTE |
MONTH |
SECOND |
WEEK |
YEAR |
| Modifier and Type | Method and Description |
|---|---|
static TemporalUnit |
fromURI(org.openrdf.model.URI value) |
org.openrdf.model.URI |
getURI() |
String |
toString() |
static TemporalUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TemporalUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TemporalUnit YEAR
public static final TemporalUnit MONTH
public static final TemporalUnit WEEK
public static final TemporalUnit DAY
public static final TemporalUnit HOUR
public static final TemporalUnit MINUTE
public static final TemporalUnit SECOND
public static TemporalUnit[] values()
for (TemporalUnit c : TemporalUnit.values()) System.out.println(c);
public static 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 nullpublic org.openrdf.model.URI getURI()
public String toString()
toString in class Enum<TemporalUnit>public static TemporalUnit fromURI(org.openrdf.model.URI value)
Copyright © 2019. All rights reserved.