<Is there any opposite of the findFirst() in a str...
# stackoverflow
u
Is there any opposite of the findFirst() in a stream? in my java application i use the following stream: columns.stream().map(columnEncryptors::get).findFirst().ifPresentOrElse(columnEncryptor -> columnEncryptor.encrypt(bankTransaction), () -> {throw new IllegalArgumentException("No encryptor");}); The list met columns contains 9 strings, but he is only using the first one and not the other 8. Is there a operation that can do this? Thanks! :)