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 |
---|---|
StringBasedErpType.FillCharStrategy |
getFillCharStrategy() |
int |
getMaxLength() |
Class<SapClient> |
getType() |
ErpTypeConverter<SapClient> |
getTypeConverter() |
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 . |
canEqual, compareTo, equals, getFillChar, getKeyAsString, getValue, hashCode, isDefault, isEmpty, toString, toString, transformToString, transformToType
public static final SapClient DEFAULT
public static final SapClient EMPTY
public SapClient(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()
@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.Copyright © 2018 SAP SE. All rights reserved.