com.brianfromoregon
Enum SubSecond

java.lang.Object
  extended by java.lang.Enum<SubSecond>
      extended by com.brianfromoregon.SubSecond
All Implemented Interfaces:
Serializable, Comparable<SubSecond>

public enum SubSecond
extends Enum<SubSecond>


Enum Constant Summary
ms
           
ns
           
s
           
μs
           
 
Field Summary
 String name
           
 double scalar
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ns

public static final SubSecond ns

μs

public static final SubSecond μs

ms

public static final SubSecond ms

s

public static final SubSecond s
Field Detail

scalar

public final double scalar

name

public final String name
Method Detail

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.