KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > ce > auction > model > ItemState


1 package org.hibernate.ce.auction.model;
2
3 public enum ItemState {
4
5     DRAFT('D'), PENDING('P'), ACTIVE('A');
6
7     private final char state;
8
9     private ItemState(char state) {
10         this.state = state;
11     }
12
13     public char value() {
14         return state;
15     }
16
17     public String JavaDoc toString() {
18         return Character.toString(state);
19     }
20 }
Popular Tags