Class BooleanConversionProcessor

java.lang.Object
com.expediagroup.beans.conversion.processor.impl.BooleanConversionProcessor
All Implemented Interfaces:
ConversionProcessor<java.lang.Boolean>

public final class BooleanConversionProcessor
extends java.lang.Object
implements ConversionProcessor<java.lang.Boolean>
Provides all method for converting any primitive type to a Boolean.
  • Constructor Summary

    Constructors
    Constructor Description
    BooleanConversionProcessor()  
  • Method Summary

    Modifier and Type Method Description
    java.util.function.Function<java.math.BigDecimal,​java.lang.Boolean> convertBigDecimal()
    Converts an BigDecimal type.
    java.util.function.Function<java.math.BigInteger,​java.lang.Boolean> convertBigInteger()
    Converts an BigInteger type.
    java.util.function.Function<java.lang.Boolean,​java.lang.Boolean> convertBoolean()
    Converts a Boolean type.
    java.util.function.Function<java.lang.Byte,​java.lang.Boolean> convertByte()
    Converts a Byte type.
    java.util.function.Function<byte[],​java.lang.Boolean> convertByteArray()
    Converts a byte[] type.
    java.util.function.Function<java.lang.Character,​java.lang.Boolean> convertCharacter()
    Converts a Character type.
    java.util.function.Function<java.lang.Double,​java.lang.Boolean> convertDouble()
    Converts a Double type.
    java.util.function.Function<java.lang.Float,​java.lang.Boolean> convertFloat()
    Converts an Float type.
    java.util.function.Function<java.lang.Integer,​java.lang.Boolean> convertInteger()
    Converts an Integer type.
    java.util.function.Function<java.lang.Long,​java.lang.Boolean> convertLong()
    Converts a Long type.
    java.util.function.Function<java.lang.Short,​java.lang.Boolean> convertShort()
    Converts a Short type.
    java.util.function.Function<java.lang.String,​java.lang.Boolean> convertString()
    Converts a String type.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BooleanConversionProcessor

      public BooleanConversionProcessor()
  • Method Details

    • convertByte

      public java.util.function.Function<java.lang.Byte,​java.lang.Boolean> convertByte()
      Converts a Byte type.
      Specified by:
      convertByte in interface ConversionProcessor<java.lang.Boolean>
      Returns:
      the converted value
    • convertByteArray

      public java.util.function.Function<byte[],​java.lang.Boolean> convertByteArray()
      Converts a byte[] type.
      Specified by:
      convertByteArray in interface ConversionProcessor<java.lang.Boolean>
      Returns:
      the converted value
    • convertShort

      public java.util.function.Function<java.lang.Short,​java.lang.Boolean> convertShort()
      Converts a Short type.
      Specified by:
      convertShort in interface ConversionProcessor<java.lang.Boolean>
      Returns:
      the converted value
    • convertInteger

      public java.util.function.Function<java.lang.Integer,​java.lang.Boolean> convertInteger()
      Converts an Integer type.
      Specified by:
      convertInteger in interface ConversionProcessor<java.lang.Boolean>
      Returns:
      the converted value
    • convertLong

      public java.util.function.Function<java.lang.Long,​java.lang.Boolean> convertLong()
      Converts a Long type.
      Specified by:
      convertLong in interface ConversionProcessor<java.lang.Boolean>
      Returns:
      the converted value
    • convertFloat

      public java.util.function.Function<java.lang.Float,​java.lang.Boolean> convertFloat()
      Converts an Float type.
      Specified by:
      convertFloat in interface ConversionProcessor<java.lang.Boolean>
      Returns:
      the converted value
    • convertDouble

      public java.util.function.Function<java.lang.Double,​java.lang.Boolean> convertDouble()
      Converts a Double type.
      Specified by:
      convertDouble in interface ConversionProcessor<java.lang.Boolean>
      Returns:
      the converted value
    • convertCharacter

      public java.util.function.Function<java.lang.Character,​java.lang.Boolean> convertCharacter()
      Converts a Character type.
      Specified by:
      convertCharacter in interface ConversionProcessor<java.lang.Boolean>
      Returns:
      the converted value
    • convertBoolean

      public java.util.function.Function<java.lang.Boolean,​java.lang.Boolean> convertBoolean()
      Converts a Boolean type.
      Specified by:
      convertBoolean in interface ConversionProcessor<java.lang.Boolean>
      Returns:
      the converted value
    • convertString

      public java.util.function.Function<java.lang.String,​java.lang.Boolean> convertString()
      Converts a String type.
      Specified by:
      convertString in interface ConversionProcessor<java.lang.Boolean>
      Returns:
      the converted value
    • convertBigInteger

      public java.util.function.Function<java.math.BigInteger,​java.lang.Boolean> convertBigInteger()
      Converts an BigInteger type.
      Specified by:
      convertBigInteger in interface ConversionProcessor<java.lang.Boolean>
      Returns:
      the converted value
    • convertBigDecimal

      public java.util.function.Function<java.math.BigDecimal,​java.lang.Boolean> convertBigDecimal()
      Converts an BigDecimal type.
      Specified by:
      convertBigDecimal in interface ConversionProcessor<java.lang.Boolean>
      Returns:
      the converted value