public final class StrategyUtils
extends java.lang.Object
| Constructor and Description |
|---|
StrategyUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getNormalizedNumber(java.lang.String identifier,
java.lang.String groupId)
Takes to string inputs concat them, produce a hash and return a normalized value between 0 and 100;
|
static int |
getNormalizedNumber(java.lang.String identifier,
java.lang.String groupId,
int normalizer) |
static int |
getPercentage(java.lang.String percentage)
Takes a numeric string value and converts it to a integer between 0 and 100.
|
static boolean |
isEmpty(java.lang.CharSequence cs) |
static boolean |
isNotEmpty(java.lang.CharSequence cs) |
static boolean |
isNumeric(java.lang.CharSequence cs) |
public static boolean isNotEmpty(java.lang.CharSequence cs)
public static boolean isEmpty(java.lang.CharSequence cs)
public static boolean isNumeric(java.lang.CharSequence cs)
public static int getNormalizedNumber(java.lang.String identifier,
java.lang.String groupId)
identifier - groupId - public static int getNormalizedNumber(java.lang.String identifier,
java.lang.String groupId,
int normalizer)
public static int getPercentage(java.lang.String percentage)
percentage - - A numeric string valueCopyright © 2014-2019. All Rights Reserved.