root/okpoll/src/net/okjsp/poll/Item.java

리비전 5, 0.5 kB (mefour에 의해 체크인됨, 16 년 전)

--

  • svn:mime-type 속성이 text/plain (으)로 설정되어있습니다.
Line 
1 package net.okjsp.poll;
2
3 public class Item {
4        
5         private int id;
6
7         private String label;
8
9         private int count;
10        
11         public Item() {}
12
13         public Item(String label) {
14                 this.label = label;
15         }
16
17         public int getCount() {
18                 return this.count;
19         }
20        
21         public String getLabel() {
22                 return label;
23         }
24
25         public void increment() {
26                 count++;
27         }
28
29         public void setLabel(String label) {
30                 this.label = label;
31         }
32
33         public void setId(int id) {
34                 this.id = id;
35         }
36
37         public int getId() {
38                 return id;
39         }
40
41 }
참고: 소스 브라우저를 사용하면서 도움이 필요하다면, TracBrowser를 참고하십시오.