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
Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.
Yaryna Kobryn -
Ahmend Riss -
Phinter Atieno -
Mike Young -
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...