Premium
Enumerated types in Java
Author(s) -
Cairns Paul A.
Publication year - 1999
Publication title -
software: practice and experience
Language(s) - English
Resource type - Journals
SCImago Journal Rank - 0.437
H-Index - 70
eISSN - 1097-024X
pISSN - 0038-0644
DOI - 10.1002/(sici)1097-024x(199903)29:3<291::aid-spe234>3.0.co;2-4
Subject(s) - java , computer science , programming language , pascal (unit) , operating system , typing , speech recognition
Java does not contain enumerated types. This paper demonstrates how to produce classes that behave like enumerated types with secure, strong typing. Additional Pascal‐like operations are easily incorporated into the enumerated types without repeating code. Full listings of the classes are given. Copyright © 1999 John Wiley & Sons, Ltd.