Class FloatFieldType


  • public class FloatFieldType
    extends FieldType<java.lang.Double>
    Represents the Apama float type, for which values are specified as Double objects.

    This class cannot be instantiated explicitly, but should be referenced using FieldTypes.FLOAT.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static FloatFieldType TYPE
      Singleton instance of this type.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void assertAssignable​(java.lang.Object c, java.lang.String fieldName)
      This method is intended for internal use only and may be removed at any time - do not use.
      java.lang.Double defaultValue()
      Get the default value for Float field type.
      java.lang.Double parse​(java.lang.String value)
      Convert a value of this type from the format used in Apama event strings, into a Double object.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • TYPE

        public static final FloatFieldType TYPE
        Singleton instance of this type.
    • Method Detail

      • assertAssignable

        public void assertAssignable​(java.lang.Object c,
                                     java.lang.String fieldName)
        Description copied from class: FieldType
        This method is intended for internal use only and may be removed at any time - do not use.
        Specified by:
        assertAssignable in class FieldType<java.lang.Double>
      • parse

        public java.lang.Double parse​(java.lang.String value)
                               throws ParserRuntimeException
        Convert a value of this type from the format used in Apama event strings, into a Double object.
        Overrides:
        parse in class FieldType<java.lang.Double>
        Parameters:
        value - the value to parse.
        Returns:
        an object specifying the value of the string that was parsed.
        Throws:
        ParserRuntimeException - If the specified value string cannot be parsed.
      • defaultValue

        public java.lang.Double defaultValue()
        Get the default value for Float field type.
        Specified by:
        defaultValue in class FieldType<java.lang.Double>
        Returns:
        0.0