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 |
---|---|
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
@ConstructorProperties(value="value") @Generated(value="lombok") public ErpBoolean(@Nullable Boolean value)
@Contract(value="null -> null") @Nullable public static ErpBoolean of(@Nullable Boolean value) throws IllegalArgumentException
IllegalArgumentException
public ErpTypeConverter<ErpBoolean> getTypeConverter()
getTypeConverter
in interface ErpType<ErpBoolean>
public boolean isTrue()
public boolean isFalse()
@Generated(value="lombok") public boolean equals(Object o)
@Generated(value="lombok") public int hashCode()
@Nullable @Generated(value="lombok") public Boolean getValue()
Copyright © 2017 SAP SE. All rights reserved.