Package formflow.library.utils
Class InputUtils
java.lang.Object
formflow.library.utils.InputUtils
Utility class to help with parsing input from forms
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanarrayOrStringContains(Object value, String target) Static function to help determine if a String or ArrayList contains thetargetvalue.
-
Constructor Details
-
InputUtils
public InputUtils()
-
-
Method Details
-
arrayOrStringContains
Static function to help determine if a String or ArrayList contains thetargetvalue.Currently this performs a comparison between two data types:
- String - checks if the
valueequals thetarget - ArrayList of Strings - checks if the
targetis in the ArrayList
- Parameters:
value- Object to check if it equals or contains thetargetstringtarget- string to find intarget- Returns:
- true if the
targetis equal to or contained invalue, else false
- String - checks if the
-