lin darren
0
Q:

optional throw if present

Optional.of(usuarios.findByEmail(usuario.getEmail())).ifPresent(param -> {
      throw new IllegalArgumentException("Only Strings allowed in path parameters.")
    });
0

New to Communities?

Join the community