public enum TimestampUnit extends Enum<TimestampUnit>
| Modifier and Type | Class and Description |
|---|---|
static class |
TimestampUnit.TimestampUnitDeserializer |
static class |
TimestampUnit.TimestampUnitSerializer |
| Modifier and Type | Method and Description |
|---|---|
static TimestampUnit |
fromString(String unit) |
String |
toString() |
static TimestampUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TimestampUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimestampUnit SECOND
public static final TimestampUnit MILLI
public static final TimestampUnit MICRO
public static final TimestampUnit NANO
public static TimestampUnit[] values()
for (TimestampUnit c : TimestampUnit.values()) System.out.println(c);
public static TimestampUnit 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 TimestampUnit fromString(String unit)
public String toString()
toString in class Enum<TimestampUnit>Copyright © 2026 Alibaba Cloud Computing. All rights reserved.