KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com4j > ComEnum


1 package com4j;
2
3
4
5 /**
6  * When enums need uncontinuous values, implement this interface and
7  * have each constant return its numeric value.
8  *
9  * <p>
10  * When an {@link Enum} class doesn't implement this interface,
11  * its {@link Enum#ordinal()} is used as its numeric value.
12  *
13  * @author Kohsuke Kawaguchi (kk@kohsuke.org)
14  */

15 public interface ComEnum {
16     /**
17      * The integer assigned to this constant.
18      */

19     int comEnumValue();
20 }
21
Popular Tags