You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to add an observer that is a Consumer<very very long generic> and after that I need to remove it. So, I need to keep it in separate variable, so, I need to declare the type of this variable:
Consumer<very very long generic> consumer = (t) -> {};
codeArea.richChanges().addObserver(consumer);
...
codeArea.richChanges().removeObserver(consumer);
Could anyone say if it is possible to copy the type of the parameter from the hint?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Please, consider the following situation:
I need to add an observer that is a
Consumer<very very long generic>
and after that I need to remove it. So, I need to keep it in separate variable, so, I need to declare the type of this variable:Could anyone say if it is possible to copy the type of the parameter from the hint?
Beta Was this translation helpful? Give feedback.
All reactions