Please rethink extended enums inclusion

Rémi Forax forax at univ-mlv.fr
Sun Oct 9 05:56:26 PDT 2011


On 10/07/2011 06:52 PM, Jose Antonio Illescas Del Olmo wrote:
> Hello Rémi,
>
>     This see as Tom's solution: CodeNamed (EnumCode), CodeMap (EnumCodes)
>
>
>     public interface CodeNamed {
>       public String code();
>     }
>
>
>      public enum Type implements CodeNamed {
>
>      public static final CodeMap<Type>   CODES = new CodeMap<>(values());

Right,
the only difference is that CODES is lazily computed in my code.

Rémi




More information about the coin-dev mailing list