Re: Why org.apache.logging.log4j.Level.valueOf(Class, String)?

2014-03-25 Thread Gary Gregory
Well, some Javadocs would help. Gary On Tue, Mar 25, 2014 at 8:31 AM, Nick Williams < nicho...@nicholaswilliams.net> wrote: > I'm not convinced we need it, but it was put there to make Level as close > to a real enum as possible. Every enum provides that static method (by way > of extending Enu

Why org.apache.logging.log4j.Level.valueOf(Class, String)?

2014-03-25 Thread Gary Gregory
Why do we have this API in org.apache.logging.log4j.Level: public static > T valueOf(Class enumType, String name) { return Enum.valueOf(enumType, name); } ? -- E-Mail: garydgreg...@gmail.com | ggreg...@apache.org Java Persistence with Hibernate, Second Edition

Re: Why org.apache.logging.log4j.Level.valueOf(Class, String)?

2014-03-25 Thread Nick Williams
I'm not convinced we need it, but it was put there to make Level as close to a real enum as possible. Every enum provides that static method (by way of extending Enum). N On Mar 25, 2014, at 7:28 AM, Gary Gregory wrote: > Why do we have this API in org.apache.logging.log4j.Level: > > publ