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.
  • Enum Constant Details

  • Field Details

    • scaleFactor

      private final int scaleFactor
      Scale 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 name
      NullPointerException - if the argument is null
    • toMillis

      int toMillis(String fraction)
      Converts the given fractional date part to milliseconds.
      Parameters:
      fraction - digits of fractional date part
      Returns:
      fraction converted to milliseconds.