Package org.ldaptive.transcode
Enum Class GeneralizedTimeValueTranscoder.FractionalPart
java.lang.Object
java.lang.Enum<GeneralizedTimeValueTranscoder.FractionalPart>
org.ldaptive.transcode.GeneralizedTimeValueTranscoder.FractionalPart
- All Implemented Interfaces:
Serializable
,Comparable<GeneralizedTimeValueTranscoder.FractionalPart>
,Constable
- Enclosing class:
GeneralizedTimeValueTranscoder
private static enum GeneralizedTimeValueTranscoder.FractionalPart
extends Enum<GeneralizedTimeValueTranscoder.FractionalPart>
Describes the fractional part of a generalized time string.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
Scale factor to convert units to millis. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) int
Converts the given fractional date part to milliseconds.Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, 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 class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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.
-