1 17 package org.apache.commons.collections.primitives.decorators; 18 19 import org.apache.commons.collections.primitives.ShortIterator; 20 import org.apache.commons.collections.primitives.ShortListIterator; 21 22 29 abstract class ProxyShortListIterator extends ProxyShortIterator implements ShortListIterator { 30 ProxyShortListIterator() { 31 } 32 33 public boolean hasPrevious() { 34 return getListIterator().hasPrevious(); 35 } 36 37 public int nextIndex() { 38 return getListIterator().nextIndex(); 39 } 40 41 public short previous() { 42 return getListIterator().previous(); 43 } 44 45 public int previousIndex() { 46 return getListIterator().previousIndex(); 47 } 48 49 protected final ShortIterator getIterator() { 50 return getListIterator(); 51 } 52 53 protected abstract ShortListIterator getListIterator(); 54 55 } 56 | Popular Tags |