/** * Gets number of last item * * @return the number of last item */ public int getLast() { return getFirst() + getCount() - 1; }
/** * Tests whether item is contained by range * * @param index * the item number * @return true if item is contained */ public boolean contains(int index) { return index >= getFirst() && index <= getLast(); } }
/** * Gets number of last item * @return the number of last item */ public int getLast() { return getFirst() + getCount() - 1; }
/** * Tests whether item is contained by range * @param index the item number * @return true if item is contained */ public boolean contains(int index) { return index >= getFirst() && index <= getLast(); } }