Class FloatNumberContainer


public class FloatNumberContainer extends NumberContainer<Float>
A container for the float SQL data type.

INCOMPLETE!

  • Constructor Details

    • FloatNumberContainer

      public FloatNumberContainer(String boxValue)
      Create an instance of this container with a string to decode and unbox. Construction will fail if the provided raw string cannot be parsed as a float.
      Parameters:
      boxValue - Raw string to decode and unbox into this container
  • Method Details

    • unbox

      public Float unbox(String val)
      Description copied from class: Container
      "Unbox" a raw string to the boxed type
      Specified by:
      unbox in class Container<Float>
      Parameters:
      val - Raw string for unboxing
      Returns:
      Boxed type representing the string
    • getMin

      protected BigDecimal getMin()
      Description copied from class: NumberContainer
      Get the minimum allowable value that can be represented by this numerical type
      Specified by:
      getMin in class NumberContainer<Float>
      Returns:
      Minimum value that can be represented by this numerical type
    • getMax

      protected BigDecimal getMax()
      Description copied from class: NumberContainer
      Get the maximum allowable value that can be represented by this numerical type
      Specified by:
      getMax in class NumberContainer<Float>
      Returns:
      Maximum value that can be represented by this numerical type
    • getBigDecimalValue

      protected BigDecimal getBigDecimalValue(Float val)
      Description copied from class: NumberContainer
      Get the BigDecimal representation of a value of the container's boxed type
      Specified by:
      getBigDecimalValue in class NumberContainer<Float>
      Parameters:
      val - A value
      Returns:
      The BigDecimal representation of the value
    • isValid

      public boolean isValid(@Nullable @Nullable String value)
      Overrides:
      isValid in class NumberContainer<Float>
      Parameters:
      value - Value to be checked
      Returns:
      true if value can be cast to the type of this container
    • toString

      public String toString()
      Specified by:
      toString in class NumberContainer<Float>