1 14 15 package com.sun.facelets.tag.jstl.core; 16 17 import java.io.Serializable ; 18 19 23 public final class IterationStatus implements Serializable { 24 25 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 begin; 37 38 private final Integer end; 39 40 private final Integer step; 41 42 45 public IterationStatus(boolean first, boolean last, int index, Integer begin, Integer end, Integer 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 getBegin() { 63 return begin; 64 } 65 66 public Integer getEnd() { 67 return end; 68 } 69 70 public int getIndex() { 71 return index; 72 } 73 74 public Integer getStep() { 75 return step; 76 } 77 78 } 79 | Popular Tags |