Class ParamGuards

java.lang.Object
org.localify.data.ParamGuards

public final class ParamGuards extends Object
A utility class for guarding against invalid parameters.
  • Method Details

    • requireUuidList

      public static List<UUID> requireUuidList(String name, List<String> values)
      Requires a list of strings to be a list of UUIDs.
      Parameters:
      name - The name of the parameter.
      values - The list of strings.
      Returns:
      A list of UUIDs.
      Throws:
      BadRequestException - if the list is null, empty, or contains invalid UUIDs.