I am new in Java 8, and I have this expression:
.map(mc -> mc.getName().getDefaultName())
and I would like to know if it could be replaced for something like:
.map(TeleBadalonaCampaignType::getName::getDefaultName)
nope, not really - the language has no such construct; unless you map it twice:
.map(TeleBadalonaCampaignType::getName)
.map(WhateverObject::getDefaultName)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With