public abstract class ParamsRetriever extends java.lang.Object
Constructor and Description |
---|
ParamsRetriever() |
Modifier and Type | Method and Description |
---|---|
protected static <T extends java.lang.Enum<T>> |
getEnumStringMatch(java.lang.String input,
java.lang.Class<T> enumClass,
boolean ignoreCase)
Matches a string against an enumeration of acceptable values.
|
protected static java.lang.String |
getEnumStringMatch(java.lang.String input,
java.lang.String[] enumStrings,
boolean ignoreCase)
Matches a string against an array of acceptable values.
|
abstract int |
size()
Returns the parameter count.
|
public ParamsRetriever()
public abstract int size()
protected static java.lang.String getEnumStringMatch(java.lang.String input, java.lang.String[] enumStrings, boolean ignoreCase)
input
- The string to match.enumStrings
- The acceptable string values. Must not be
null
.ignoreCase
- true
for a case insensitive match.null
if no match was
found.protected static <T extends java.lang.Enum<T>> T getEnumStringMatch(java.lang.String input, java.lang.Class<T> enumClass, boolean ignoreCase)
input
- The string to match.enumClass
- The enumeration class specifying the acceptable
string values. Must not be null
.ignoreCase
- true
for a case insensitive match.null
if no match
was found.Copyright © 2021 The Transaction Company. All Rights Reserved.