public abstract class AbstractCouponCodeGenerationStrategy
extends java.lang.Object
| Constructor and Description |
|---|
AbstractCouponCodeGenerationStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
createIntFromTwoCharactersString(java.lang.String value,
int offset,
java.lang.String alphabet)
this is the inverse function to
createTwoCharactersFromByte(int, int, String): If given a two-character
input value and the offset used to create the two character input it will derive the originating int
(byte) used to create this string. |
protected java.lang.String |
createTwoCharactersFromByte(int value,
int offset,
java.lang.String alphabet)
creates a two-character string from the given int value
|
protected java.lang.String |
pickCharacter(int value,
int offset,
java.lang.String alphabet)
returns a one-character string from the given alphabet.
|
protected int |
pickInt(char value,
int offset,
java.lang.String alphabet)
This is the inverse function to
pickCharacter(int, int, String): For the the given char value it
will derive the originating int and return it. |
public AbstractCouponCodeGenerationStrategy()
protected java.lang.String createTwoCharactersFromByte(int value,
int offset,
java.lang.String alphabet)
protected java.lang.String pickCharacter(int value,
int offset,
java.lang.String alphabet)
protected int createIntFromTwoCharactersString(java.lang.String value,
int offset,
java.lang.String alphabet)
createTwoCharactersFromByte(int, int, String): If given a two-character
input value and the offset used to create the two character input it will derive the originating int
(byte) used to create this string.protected int pickInt(char value,
int offset,
java.lang.String alphabet)
pickCharacter(int, int, String): For the the given char value it
will derive the originating int and return it.Copyright © 2018 SAP SE. All Rights Reserved.