Currently, I have a UnaryOperator
like this
UnaryOperator<Object> defaultParser = obj -> obj;
I don't know if I can use a method reference in these kinds of operation. Example:
UnaryOperator<String> defaultParser = String::toString;
But with the generic way, not just String
.