public class DistributionChannel extends StringBasedErpType<DistributionChannel>
StringBasedErpType.CharCasing, StringBasedErpType.FillCharStrategy
Modifier and Type | Field and Description |
---|---|
static DistributionChannel |
EMPTY
The empty instance.
|
Constructor and Description |
---|
DistributionChannel(String value)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
StringBasedErpType.FillCharStrategy |
getFillCharStrategy() |
int |
getMaxLength() |
Class<DistributionChannel> |
getType() |
ErpTypeConverter<DistributionChannel> |
getTypeConverter()
Get the type converter for the ERP type.
|
int |
hashCode() |
static DistributionChannel |
of(String value)
Static method factory for the value type.
|
static Set<DistributionChannel> |
toDistributionChannels(Collection<String> values)
Helper method to transform a collection of Strings to a Set of objects.
|
static Set<String> |
toStrings(Collection<DistributionChannel> values)
Helper method to transform a collection of objects to a Set of Strings.
|
compareTo, getFillChar, getKeyAsString, getValue, isDefault, isEmpty, toString, toString, transformToString, transformToType
public static final DistributionChannel EMPTY
public DistributionChannel(String value) throws IllegalArgumentException
value
- The String representation.IllegalArgumentException
- when the String value cannot be parsed accordingly.@Nullable public static DistributionChannel of(@Nullable String value) throws IllegalArgumentException
value
- The String representation.IllegalArgumentException
- when the String value cannot be parsed accordingly.@Nonnull public ErpTypeConverter<DistributionChannel> getTypeConverter()
ErpType
@Nonnull public Class<DistributionChannel> getType()
getType
in class StringBasedErpType<DistributionChannel>
public int getMaxLength()
getMaxLength
in class StringBasedErpType<DistributionChannel>
@Nonnull public StringBasedErpType.FillCharStrategy getFillCharStrategy()
getFillCharStrategy
in class StringBasedErpType<DistributionChannel>
@Nonnull public static Set<DistributionChannel> toDistributionChannels(Collection<String> values)
values
- The items of type String@Nonnull public static Set<String> toStrings(Collection<DistributionChannel> values)
values
- The items of type DistributionChannelpublic boolean equals(Object o)
equals
in class StringBasedErpType<DistributionChannel>
protected boolean canEqual(Object other)
canEqual
in class StringBasedErpType<DistributionChannel>
public int hashCode()
hashCode
in class StringBasedErpType<DistributionChannel>
Copyright © 2020 SAP SE. All rights reserved.