public abstract class ModelUtil extends Object
| Constructor and Description |
|---|
ModelUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isAmong(String needle,
String... hayStack)
Check if a value is in a list of values.
|
static boolean |
validate(String input,
int maxLength)
Check if a string exceeds a given length.
|
public static boolean isAmong(String needle, String... hayStack)
needle - value we want to search for.hayStack - list of value that we search in.public static boolean validate(String input, int maxLength)
input - The string to check.maxLength - The largest length accepted.Copyright © 2022. All rights reserved.