Class InputUtils

java.lang.Object
formflow.library.utils.InputUtils

public class InputUtils extends Object
Utility class to help with parsing input from forms
  • Constructor Details

    • InputUtils

      public InputUtils()
  • Method Details

    • arrayOrStringContains

      public static boolean arrayOrStringContains(Object value, String target)
      Static function to help determine if a String or ArrayList contains the target value.

      Currently this performs a comparison between two data types:

      • String - checks if the value equals the target
      • ArrayList of Strings - checks if the target is in the ArrayList

      Parameters:
      value - Object to check if it equals or contains the target string
      target - string to find in target
      Returns:
      true if the target is equal to or contained in value, else false