You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am (re)-using multiple common functional interfaces in my code, and the parameter names sometimes do not properly match the intent. For example DoubleUnaryOperator taking a double generically named operand.
I believe there could be an annotation hinting the IDE into using our own name
// What is currently suggestedVec.ZERO.withX(operand -> operand * 5);
// With hintVec.ZERO.withX(x -> x * 5);
// Similar example using UnaryOperator// What is currently suggesteditemBuilder.meta(itemMetaBuilder -> itemMetaBuilder);
// With hintitemBuilder.meta(metaBuilder -> metaBuilder);
The alternative would be creating my own interfaces, which feels a bit unnecessary.
The text was updated successfully, but these errors were encountered:
I am (re)-using multiple common functional interfaces in my code, and the parameter names sometimes do not properly match the intent. For example
DoubleUnaryOperator
taking a double generically namedoperand
.I believe there could be an annotation hinting the IDE into using our own name
The alternative would be creating my own interfaces, which feels a bit unnecessary.
The text was updated successfully, but these errors were encountered: