I came across the following code:
List<Fields> invFieldsLst = new ArrayList<>();
InvListener listener = invFieldsLst::add;
The following interface:
public interface InvListener {
void test(Fields fields);
}
How does the double :: even work? I just dont understand how thats working..