| Method from org.apache.commons.collections.primitives.adapters.AbstractShortListList Detail: |
public void add(int index,
Object element) {
getShortList().add(index,((Number)element).shortValue());
}
|
public boolean addAll(int index,
Collection c) {
return getShortList().addAll(index,CollectionShortCollection.wrap(c));
}
|
public boolean equals(Object obj) {
if(obj instanceof List) {
List that = (List)obj;
if(this == that) {
return true;
} else if(this.size() != that.size()) {
return false;
} else {
Iterator thisiter = iterator();
Iterator thatiter = that.iterator();
while(thisiter.hasNext()) {
Object thiselt = thisiter.next();
Object thatelt = thatiter.next();
if(null == thiselt ? null != thatelt : !(thiselt.equals(thatelt))) {
return false;
}
}
return true;
}
} else {
return false;
}
}
|
public Object get(int index) {
return new Short(getShortList().get(index));
}
|
protected final ShortCollection getShortCollection() {
return getShortList();
}
|
abstract protected ShortList getShortList()
|
public int hashCode() {
return getShortList().hashCode();
}
|
public int indexOf(Object element) {
return getShortList().indexOf(((Number)element).shortValue());
}
|
public int lastIndexOf(Object element) {
return getShortList().lastIndexOf(((Number)element).shortValue());
}
|
public ListIterator listIterator() {
return ShortListIteratorListIterator.wrap(getShortList().listIterator());
}
|
public ListIterator listIterator(int index) {
return ShortListIteratorListIterator.wrap(getShortList().listIterator(index));
}
|
public Object remove(int index) {
return new Short(getShortList().removeElementAt(index));
}
|
public Object set(int index,
Object element) {
return new Short(getShortList().set(index, ((Number)element).shortValue() ));
}
|
public List subList(int fromIndex,
int toIndex) {
return ShortListList.wrap(getShortList().subList(fromIndex,toIndex));
}
|