KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > facelets > tag > jstl > core > IterationStatus


1 /**
2  * Licensed under the Common Development and Distribution License,
3  * you may not use this file except in compliance with the License.
4  * You may obtain a copy of the License at
5  *
6  * http://www.sun.com/cddl/
7  *
8  * Unless required by applicable law or agreed to in writing, software
9  * distributed under the License is distributed on an "AS IS" BASIS,
10  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
11  * implied. See the License for the specific language governing
12  * permissions and limitations under the License.
13  */

14
15 package com.sun.facelets.tag.jstl.core;
16
17 import java.io.Serializable JavaDoc;
18
19 /**
20  * @author Jacob Hookom
21  * @version $Id: IterationStatus.java,v 1.3 2006/03/19 03:11:35 jhook Exp $
22  */

23 public final class IterationStatus implements Serializable JavaDoc {
24
25     /**
26      *
27      */

28     private static final long serialVersionUID = 1L;
29
30     private final int index;
31     
32     private final boolean first;
33     
34     private final boolean last;
35
36     private final Integer JavaDoc begin;
37
38     private final Integer JavaDoc end;
39
40     private final Integer JavaDoc step;
41
42     /**
43      *
44      */

45     public IterationStatus(boolean first, boolean last, int index, Integer JavaDoc begin, Integer JavaDoc end, Integer JavaDoc step) {
46         this.index = index;
47         this.begin = begin;
48         this.end = end;
49         this.step = step;
50         this.first = first;
51         this.last = last;
52     }
53
54     public boolean isFirst() {
55         return this.first;
56     }
57
58     public boolean isLast() {
59         return this.last;
60     }
61
62     public Integer JavaDoc getBegin() {
63         return begin;
64     }
65
66     public Integer JavaDoc getEnd() {
67         return end;
68     }
69
70     public int getIndex() {
71         return index;
72     }
73
74     public Integer JavaDoc getStep() {
75         return step;
76     }
77
78 }
79
Popular Tags