commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Colebourne <scolebou...@btopenworld.com>
Subject Re: [lang] EnumUtils new method?
Date Tue, 15 Aug 2006 23:57:27 GMT
Gary Gregory wrote:
> In EnumUtils we have:
> public static Enum getEnum(Class enumClass, String name)
> What I need to ask a List of Enum classes for an Enum:
> public static Enum getEnum(List enumClassList, String name)
> Is this too odd a case? Should I keep my utility method in my own code?

Sounds pretty odd to me. Each enum is intended to be a separate isolated 
unit, which share code because we're pre JDK1.5. It wasn't intended that 
there would be what amounts to groups of enum classes.

Stephen

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message