This is impossible, no.
Lambdas cannot have a state (outside of any state that they capture from the surrounding context). Even if they could, it would be a little inconvenient to access it, because it thisrefers to the surrounding context (that is, to an object whose method is defined by a lambda), and not an instance of lamdba. This is specified in JLS 15.27.2 .
- AtomicReference<String> , lastLine; , , , . Lambdas , , , ( 15.27.2) , this ).