mercredi 24 juillet 2019

Is it possible to get condition of predicate?

I wonder if it is possible to fetch Predicate's condition, for example with reflection. For example I have following Predicate:

Predicate<TextInputControl> isTextFieldEmpty = field -> field.getText().isEmpty();


My intention is to get:

field -> field.getText().isEmpty()

Preferably as String.





Aucun commentaire:

Enregistrer un commentaire