Class QVCFloat

java.lang.Object
com.io7m.quarrel.core.converters.QVCAbstract<Float>
com.io7m.quarrel.core.converters.QVCFloat
All Implemented Interfaces:
QValueConverterType<Float>

public final class QVCFloat extends QVCAbstract<Float>
A value converter.
  • Method Details

    • get

      public static QValueConverterType<Float> get()
      Returns:
      A value converter.
    • parse

      protected Float parse(String text) throws Exception
      Specified by:
      parse in class QVCAbstract<Float>
      Throws:
      Exception
    • convertToString

      public String convertToString(Float value)
      Description copied from interface: QValueConverterType
      Convert a value of T to a string.
      Parameters:
      value - The value
      Returns:
      A string
    • exampleValue

      public Float exampleValue()
      Returns:
      An example value used for documentation
    • syntax

      public String syntax()
      Returns:
      A description of the syntax for valid values of T
    • convertedClass

      public Class<Float> convertedClass()
      Returns:
      The type that will be converted