Interface ReturningValidationBuilder<T>

    • Method Detail

      • orElseReturn

        T orElseReturn​(T other)
        Parameters:
        other - the backup/default return type if the validation fails.
        Returns:
        T the return type.
      • orElseReturn

        T orElseReturn​(Function<String,​T> other)
        Parameters:
        other - the backup/default return type if the validation fails with the optional message that is contained in the Validator.
        Returns:
        T the return type.