Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
Rossen Stoyanchev opened SPR-15718 and commented
Affects: 5.0 RC2
Referenced from: commits 8f4eb23, 9253fac, 7de6cfa
The text was updated successfully, but these errors were encountered:
Rob Winch commented
I'd like to request that there is also easy to get a value with no default value and no casting. Something like: <T> T getAttribute(String attrName).
<T> T getAttribute(String attrName)
Sorry, something went wrong.
Rossen Stoyanchev commented
Indeed that is the plan. All of the following actually:
<T> T getAttribute(String name);
<T> T getRequiredAttribute(String name);
<T> T getAttributeOrDefault(String name, T defaultValue);
Awesome! Thanks :)
Successfully merging a pull request may close this issue.