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 |
static ErpBoolean |
TRUE |
Constructor and Description |
---|
ErpBoolean(Boolean value) |
ErpBoolean(String value) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
ErpTypeConverter<ErpBoolean> |
getTypeConverter() |
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) |
String |
toString() |
public static final ErpBoolean TRUE
public static final ErpBoolean FALSE
public ErpBoolean(@Nullable String value) throws IllegalArgumentException
IllegalArgumentException
@Nullable public static ErpBoolean of(@Nullable Boolean value) throws IllegalArgumentException
IllegalArgumentException
@Nonnull public ErpTypeConverter<ErpBoolean> getTypeConverter()
getTypeConverter
in interface ErpType<ErpBoolean>
public boolean isTrue()
public boolean isFalse()
protected boolean canEqual(Object other)
Copyright © 2018 SAP SE. All rights reserved.