Interface TypeSafeEnum

All Superinterfaces:
Abelian, Contract,
All Known Implementing Classes:

public interface TypeSafeEnum
extends Contract,, Abelian

Contract Marker: TypeSafeEnum
Description: The Type Safe Enumeration "contract" requires a class to follow the design pattern as documented on the Java web site. This contract uses a variant that implies that serialization is done properly and may or may not use an integer ordinal value.
Note that this contract commits the subclasses to implement Serializable. When done properly, the default equals, hashCode, and toString methods will be sufficient to claim adherence to the Abelian contract too for free!

See Also:
"Effective Java; Item 21"