The last time I used Java was 1.5, could someone let me know what the ::new does ?
namedWriteables.add(new NamedWriteableRegistry.Entry(EvaluationMetric.class, RecallAtK.NAME, RecallAtK::new));
The last time I used Java was 1.5, could someone let me know what the ::new does ?
namedWriteables.add(new NamedWriteableRegistry.Entry(EvaluationMetric.class, RecallAtK.NAME, RecallAtK::new));
For further actions, you may consider blocking this person and/or reporting abuse
Anwar -
Vadym Kazulkin -
Dayananda -
Dayananda -
Top comments (2)
Hello,
it creates a new instance of RecallAtK
Java came a long way since version 5. Java 8 introduced method references, see baeldung.com/java-method-references for examples...