public class SapClient extends StringBasedErpType<SapClient>
StringBasedErpType.CharCasing, StringBasedErpType.FillCharStrategy
Modifier and Type | Field and Description |
---|---|
static SapClient |
DEFAULT
Placeholder to indicate that the default
SapClient should be used when connecting to the ERP. |
static SapClient |
EMPTY
Represents a
SapClient with an empty value. |
Constructor and Description |
---|
SapClient(String value)
Creates a new
SapClient representing the given ERP String. |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
StringBasedErpType.FillCharStrategy |
getFillCharStrategy() |
int |
getMaxLength() |
Class<SapClient> |
getType() |
ErpTypeConverter<SapClient> |
getTypeConverter()
Get the type converter for the ERP type.
|
int |
hashCode() |
static SapClient |
of(String value)
Creates a new
SapClient based on the given String value . |
static Set<SapClient> |
toSapClients(Collection<String> values)
Transforms the given collection of Strings representing
SapClient s to a set of SapClient s via the
SapClientConverter . |
static Set<String> |
toStrings(Collection<SapClient> values)
Transforms the given collection of
SapClient s to a set of Strings representing those SapClient s
via the SapClientConverter . |
compareTo, getFillChar, getKeyAsString, getValue, isDefault, isEmpty, toString, toString, transformToString, transformToType
public static final SapClient DEFAULT
public static final SapClient EMPTY
public SapClient(@Nonnull String value) throws IllegalArgumentException
SapClient
representing the given ERP String.value
- The String value to represent.IllegalArgumentException
- If value
is null or the length of value
is longer than the length specified by
getMaxLength()
.@Nullable public static SapClient of(@Nullable String value) throws IllegalArgumentException
SapClient
based on the given String value
.value
- The String value the SapClient
should represent.SapClient
, or null, if value
is null.IllegalArgumentException
- If the length of value
is longer than the length specified by getMaxLength()
.@Nonnull public ErpTypeConverter<SapClient> getTypeConverter()
ErpType
@Nonnull public Class<SapClient> getType()
getType
in class StringBasedErpType<SapClient>
public int getMaxLength()
getMaxLength
in class StringBasedErpType<SapClient>
@Nonnull public StringBasedErpType.FillCharStrategy getFillCharStrategy()
getFillCharStrategy
in class StringBasedErpType<SapClient>
@Nonnull public static Set<SapClient> toSapClients(Collection<String> values)
SapClient
s to a set of SapClient
s via the
SapClientConverter
.values
- The collection of strings to convert.SapClient
s.@Nonnull public static Set<String> toStrings(Collection<SapClient> values)
SapClient
s to a set of Strings representing those SapClient
s
via the SapClientConverter
.values
- The collection of SapClient
s to convert.public boolean equals(@Nullable Object o)
equals
in class StringBasedErpType<SapClient>
protected boolean canEqual(@Nullable Object other)
canEqual
in class StringBasedErpType<SapClient>
public int hashCode()
hashCode
in class StringBasedErpType<SapClient>
Copyright © 2020 SAP SE. All rights reserved.