private static enum GeneralizedTimeValueTranscoder.FractionalPart extends Enum<GeneralizedTimeValueTranscoder.FractionalPart>
Enum Constant and Description |
---|
Hours
Fractional hours.
|
Minutes
Fractional minutes.
|
Seconds
Fractional seconds.
|
Modifier and Type | Field and Description |
---|---|
private int |
scaleFactor
Scale factor to convert units to millis.
|
Modifier and Type | Method and Description |
---|---|
(package private) int |
toMillis(String fraction)
Converts the given fractional date part to milliseconds.
|
static GeneralizedTimeValueTranscoder.FractionalPart |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GeneralizedTimeValueTranscoder.FractionalPart[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GeneralizedTimeValueTranscoder.FractionalPart Hours
public static final GeneralizedTimeValueTranscoder.FractionalPart Minutes
public static final GeneralizedTimeValueTranscoder.FractionalPart Seconds
public static GeneralizedTimeValueTranscoder.FractionalPart[] values()
for (GeneralizedTimeValueTranscoder.FractionalPart c : GeneralizedTimeValueTranscoder.FractionalPart.values()) System.out.println(c);
public static GeneralizedTimeValueTranscoder.FractionalPart 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 nullint toMillis(String fraction)
fraction
- digits of fractional date partCopyright © 2003-2019 Virginia Tech. All Rights Reserved.