| Method from org.apache.commons.collections.primitives.adapters.AbstractIntListList Detail: |
public void add(int index,
Object element) {
getIntList().add(index,((Number)element).intValue());
}
|
public boolean addAll(int index,
Collection c) {
return getIntList().addAll(index,CollectionIntCollection.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 Integer(getIntList().get(index));
}
|
protected final IntCollection getIntCollection() {
return getIntList();
}
|
abstract protected IntList getIntList()
|
public int hashCode() {
return getIntList().hashCode();
}
|
public int indexOf(Object element) {
return getIntList().indexOf(((Number)element).intValue());
}
|
public int lastIndexOf(Object element) {
return getIntList().lastIndexOf(((Number)element).intValue());
}
|
public ListIterator listIterator() {
return IntListIteratorListIterator.wrap(getIntList().listIterator());
}
|
public ListIterator listIterator(int index) {
return IntListIteratorListIterator.wrap(getIntList().listIterator(index));
}
|
public Object remove(int index) {
return new Integer(getIntList().removeElementAt(index));
}
|
public Object set(int index,
Object element) {
return new Integer(getIntList().set(index, ((Number)element).intValue() ));
}
|
public List subList(int fromIndex,
int toIndex) {
return IntListList.wrap(getIntList().subList(fromIndex,toIndex));
}
|