MaxwellCody opened a new pull request #730:
URL: https://github.com/apache/commons-lang/pull/730


   The method accepts a Function object used to supply keys for the map.
   
   The behavior of the single-parameter getEnumMap() can be emulated with this
   method by using a reference to the Enum::name method. For example,
   
      EnumUtils.getEnumMap(Traffic.class);
   
   would become
   
      EnumUtils.getEnumMap(Traffic.class, Traffic::name);
   
   and the resulting map would be identical.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to