In particular, I have a TabPane, and I would like to know if there is an element with a specific identifier in it.
So, I would like to do this using the lambda expression in Java:
boolean idExists = false; String idToCheck = "someId"; for (Tab t : tabPane.getTabs()){ if(t.getId().equals(idToCheck)) { idExists = true; } }
java lambda java-8
Miljac Apr 11 '14 at 6:19 2014-04-11 06:19
source share