public enum TimeValues extends Enum<TimeValues>
| 限定符和类型 | 方法和说明 |
|---|---|
static TimeValue |
timeValueHours(long hours) |
static TimeValue |
timeValueMillis(long millis) |
static TimeValue |
timeValueMinutes(long minutes) |
static TimeValue |
timeValueNanos(long nanos) |
static TimeValue |
timeValueSeconds(long seconds) |
static TimeValues |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static TimeValues[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static TimeValues[] values()
for (TimeValues c : TimeValues.values()) System.out.println(c);
public static TimeValues valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public static TimeValue timeValueNanos(long nanos)
public static TimeValue timeValueMillis(long millis)
public static TimeValue timeValueSeconds(long seconds)
public static TimeValue timeValueMinutes(long minutes)
public static TimeValue timeValueHours(long hours)
Copyright © 2021. All rights reserved.