Package org.ldaptive.transcode
Enum GeneralizedTimeValueTranscoder.FractionalPart
java.lang.Object
java.lang.Enum<GeneralizedTimeValueTranscoder.FractionalPart>
org.ldaptive.transcode.GeneralizedTimeValueTranscoder.FractionalPart
- All Implemented Interfaces:
Serializable,Comparable<GeneralizedTimeValueTranscoder.FractionalPart>
- Enclosing class:
- GeneralizedTimeValueTranscoder
private static enum GeneralizedTimeValueTranscoder.FractionalPart
extends Enum<GeneralizedTimeValueTranscoder.FractionalPart>
Describes the fractional part of a generalized time string.
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intScale factor to convert units to millis. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) intConverts the given fractional date part to milliseconds.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Hours
Fractional hours. -
Minutes
Fractional minutes. -
Seconds
Fractional seconds.
-
-
Field Details
-
scaleFactor
private final int scaleFactorScale factor to convert units to millis.
-
-
Constructor Details
-
FractionalPart
private FractionalPart(int scale) Creates a new fractional part.- Parameters:
scale- scale factor.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException- if the argument is null
-
toMillis
Converts the given fractional date part to milliseconds.- Parameters:
fraction- digits of fractional date part- Returns:
- fraction converted to milliseconds.
-