This example <http://www.basilv.com/psd/blog/2006/advanced-uses-of-java-5-enums>uses getDisplayName(), though given the presence of name(), I think displayName() makes more sense (Josh Bloch hates the getXXX(), setXXX() pattern)

-- Blake Sullivan


On 2/13/12 7:23 PM, Andy Schwartz wrote:
Gang -

For this newly logged issue:

TRINIDAD-2215 String ->  Accessibility enum API
https://issues.apache.org/jira/browse/TRINIDAD-2215

I would like to add a new valueOfAlias() method to
RequestContext.Accessibility, as shown here:

https://issues.apache.org/jira/secure/attachment/12514439/trinidad-2215.patch

This serves a similar purpose to good old Enum.valueOf(), but operates
on the pretty names/aliases used by the Accessibility enum.

Any concerns about this?  Or suggestions for a better method name?

Andy

Reply via email to