I have list of response from a rest WS. This list contains "Response" objects in which each object contains e field called "tokenExpiry". If any one of these token expiry is < currentTimeInMillis , then I have to throw an exception
Pseudo code something like this
list.stream().filter(response -> response.tokenExpiry < currentTimeInMillis)
then throw new Exception
.