# Class DurationConverter

java.lang.Object
javafx.css.StyleConverter<ParsedValue<?,Size>, Duration>
javafx.css.converter.DurationConverter

public final class DurationConverter extends StyleConverter<ParsedValue<?,Size>, Duration>
Converter to Convert a `Size` to `Duration`.

Since:
  9

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static final class`
  `DurationConverter.SequenceConverter`
  Converts a sequence of parsed values to an array of `Duration` instances.

  ### Nested classes/interfaces declared in class StyleConverter

  `StyleConverter.StringStore`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static StyleConverter<ParsedValue<?,Size>, Duration>`
  `getInstance()`
  Gets the `DurationConverter` instance.

  ### Methods declared in class StyleConverter

  `cacheValue, clearCache, convert, convert, getBooleanConverter, getCachedValue, getColorConverter, getDurationConverter, getEffectConverter, getEnumConverter, getFontConverter, getInsetsConverter, getPaintConverter, getSizeConverter, getStringConverter, getUrlConverter, readBinary, writeBinary`

  ### Methods declared in class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### getInstance

    public static StyleConverter<ParsedValue<?,Size>, Duration> getInstance()
    Gets the `DurationConverter` instance.
    Returns:
      the `DurationConverter` instance