I\'ve just started working with Java 8 and I\'m struggling with this code snippet:
paramsValues[idx++] = new ReplyMessage() { @Override
paramValues[idx++] = reply -> message.reply(reply);
Or
paramValues[idx++] = reply -> { return message.reply(reply); }
It will work as long as ReplyMessage is functional interface and paramValues is of type ReplyMessage.
ReplyMessage