Class ErpBoolean

java.lang.Object
com.sap.cloud.sdk.s4hana.serialization.ErpBoolean
All Implemented Interfaces:
ErpType<ErpBoolean>, Serializable

@Deprecated public class ErpBoolean extends Object implements ErpType<ErpBoolean>
Deprecated.
This module will be discontinued, along with its classes and methods.
Representation of a boolean in an ERP.

This class translates the representation of booleans in an ERP ("X" is true, " " is false, and "-" is undefined).

See Also:
  • Field Details

    • TRUE

      public static final ErpBoolean TRUE
      Deprecated.
      The TRUE instance.
    • FALSE

      public static final ErpBoolean FALSE
      Deprecated.
      The FALSE instance.
  • Constructor Details

  • Method Details

    • of

      @Nullable public static ErpBoolean of(@Nullable Boolean value) throws IllegalArgumentException
      Deprecated.
      A static method factory method.
      Parameters:
      value - The Boolean value.
      Returns:
      The ERP type representation of the boolean value.
      Throws:
      IllegalArgumentException - when the input value could not be converted.
    • getTypeConverter

      @Nonnull public ErpTypeConverter<ErpBoolean> getTypeConverter()
      Deprecated.
      Description copied from interface: ErpType
      Get the type converter for the ERP type.
      Specified by:
      getTypeConverter in interface ErpType<ErpBoolean>
      Returns:
      The type converter.
    • isTrue

      public boolean isTrue()
      Deprecated.
      Checks whether this ERP boolean is not null and true.
      Returns:
      The boolean value.
    • isFalse

      public boolean isFalse()
      Deprecated.
      Checks whether this ERP boolean is not null and false.
      Returns:
      The inverted boolean value.
    • toString

      @Nonnull public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • equals

      public boolean equals(@Nullable Object o)
      Deprecated.
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(@Nullable Object other)
      Deprecated.
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • getValue

      @Nullable public Boolean getValue()
      Deprecated.