Class CodeFormatAvailableCharHelper
- java.lang.Object
-
- com.broadleafcommerce.promotion.campaign.service.helper.CodeFormatAvailableCharHelper
-
public class CodeFormatAvailableCharHelper extends Object
Determines for a given character what the available replacement characters are.- Author:
- bpolster
-
-
Constructor Summary
Constructors Constructor Description CodeFormatAvailableCharHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcountCombinationsForFormat(String format)Takes in the passed in format and computes the number of possible combinationsStringgetAvailableCharactersForFormatElement(char formatElement)
-
-
-
Method Detail
-
getAvailableCharactersForFormatElement
public String getAvailableCharactersForFormatElement(char formatElement)
-
countCombinationsForFormat
public long countCombinationsForFormat(String format)
Takes in the passed in format and computes the number of possible combinations- Parameters:
format-- Returns:
-
-