public enum SubSecond extends Enum<SubSecond>
Modifier and Type | Method and Description |
---|---|
static SubSecond |
finestFor(Iterable<? extends Number> nanos) |
static SubSecond |
finestFor(Number nanos) |
String |
format(Number nanos) |
String |
format(Number nanos,
DecimalFormat fmt) |
double |
fromNanos(Number nanos) |
static SubSecond |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SubSecond[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SubSecond ns
public static final SubSecond μs
public static final SubSecond ms
public static final SubSecond s
public final double scalar
public final String name
public static SubSecond[] values()
for (SubSecond c : SubSecond.values()) System.out.println(c);
public static SubSecond 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 double fromNanos(Number nanos)
public String format(Number nanos, DecimalFormat fmt)
Copyright © 2004-2012. All Rights Reserved.