public class ErpBoolean extends Object implements ErpType<ErpBoolean>
This class translates the representation of booleans in an ERP ("X" is true, " " is false, and "-" is undefined).
Modifier and Type | Field and Description |
---|---|
static ErpBoolean |
FALSE
The FALSE instance.
|
static ErpBoolean |
TRUE
The TRUE instance.
|
Constructor and Description |
---|
ErpBoolean(Boolean value) |
ErpBoolean(String value)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
ErpTypeConverter<ErpBoolean> |
getTypeConverter()
Get the type converter for the ERP type.
|
Boolean |
getValue() |
int |
hashCode() |
boolean |
isFalse()
Checks whether this ERP boolean is not null and false.
|
boolean |
isTrue()
Checks whether this ERP boolean is not null and true.
|
static ErpBoolean |
of(Boolean value)
A static method factory method.
|
String |
toString() |
public static final ErpBoolean TRUE
public static final ErpBoolean FALSE
public ErpBoolean(@Nullable String value) throws IllegalArgumentException
value
- The String value.IllegalArgumentException
- when the input value could not be converted.@Nullable public static ErpBoolean of(@Nullable Boolean value) throws IllegalArgumentException
value
- The Boolean value.IllegalArgumentException
- when the input value could not be converted.@Nonnull public ErpTypeConverter<ErpBoolean> getTypeConverter()
ErpType
getTypeConverter
in interface ErpType<ErpBoolean>
public boolean isTrue()
public boolean isFalse()
protected boolean canEqual(Object other)
Copyright © 2020 SAP SE. All rights reserved.