com.brianfromoregon
Enum SubSecond
java.lang.Object
java.lang.Enum<SubSecond>
com.brianfromoregon.SubSecond
- All Implemented Interfaces:
- Serializable, Comparable<SubSecond>
public enum SubSecond
- extends Enum<SubSecond>
ns
public static final SubSecond ns
μs
public static final SubSecond μs
ms
public static final SubSecond ms
s
public static final SubSecond s
scalar
public final double scalar
name
public final String name
values
public static SubSecond[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (SubSecond c : SubSecond.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static SubSecond valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
fromNanos
public double fromNanos(Number nanos)
format
public String format(Number nanos,
DecimalFormat fmt)
format
public String format(Number nanos)
finestFor
public static SubSecond finestFor(Number nanos)
finestFor
public static SubSecond finestFor(Iterable<? extends Number> nanos)
Copyright © 2004-2012. All Rights Reserved.