Enum Class StringBasedErpType.FillCharStrategy
java.lang.Object
java.lang.Enum<StringBasedErpType.FillCharStrategy>
com.sap.cloud.sdk.s4hana.serialization.StringBasedErpType.FillCharStrategy
- All Implemented Interfaces:
Serializable
,Comparable<StringBasedErpType.FillCharStrategy>
,Constable
- Enclosing class:
- StringBasedErpType<T extends StringBasedErpType<T>>
public static enum StringBasedErpType.FillCharStrategy
extends Enum<StringBasedErpType.FillCharStrategy>
The strategy to be used to fill the String representation of a
StringBasedErpType
to the length specified
by StringBasedErpType.getMaxLength()
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionLeaves the String unmodified.Fills the String until the specified length ist reached.If the Strings contains only numeric values, fill the string until the specified length is reached, otherwise leave the String unmodified.Removes all occurrences of the specified character from the start of the String. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static StringBasedErpType.FillCharStrategy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DO_NOTHING
Leaves the String unmodified. -
FILL_LEADING
Fills the String until the specified length ist reached. -
FILL_LEADING_IF_NUMERIC
If the Strings contains only numeric values, fill the string until the specified length is reached, otherwise leave the String unmodified. -
STRIP_LEADING
Removes all occurrences of the specified character from the start of the String.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-