Class CustomBooleanConverter

java.lang.Object
org.csveed.bean.conversion.AbstractConverter<Boolean>
org.csveed.bean.conversion.CustomBooleanConverter
All Implemented Interfaces:
Converter<Boolean>

public class CustomBooleanConverter extends AbstractConverter<Boolean>
The Class CustomBooleanConverter.
  • Field Details

  • Constructor Details

    • CustomBooleanConverter

      public CustomBooleanConverter(boolean allowEmpty)
      Instantiates a new custom boolean converter.
      Parameters:
      allowEmpty - the allow empty
    • CustomBooleanConverter

      public CustomBooleanConverter(String trueString, String falseString, boolean allowEmpty)
      Instantiates a new custom boolean converter.
      Parameters:
      trueString - the true string
      falseString - the false string
      allowEmpty - the allow empty
  • Method Details

    • fromString

      public Boolean fromString(String text) throws Exception
      Description copied from interface: Converter
      From string.
      Parameters:
      text - the text
      Returns:
      the k
      Throws:
      Exception - the exception
    • toString

      public String toString(Boolean value) throws Exception
      Description copied from interface: Converter
      To string.
      Parameters:
      value - the value
      Returns:
      the string
      Throws:
      Exception - the exception