Methods Summary |
---|
protected abstract boolean | containerIsOfSameType(java.lang.Object object)
|
protected abstract boolean | equalObjects(java.lang.Object firstObject, java.lang.Object secondObject)
|
public synchronized boolean | equals(java.lang.Object otherObject)
if (false == (containerIsOfSameType(otherObject))) {
return false;
}
SerializableList otherComparableList = (SerializableList) otherObject;
int size = _containedObjects.size();
if (size != otherComparableList.getSize()) {
return false;
}
for (int i = 0; i < size; i++) {
if (false == equalObjects(_containedObjects.get(i), otherComparableList.get(i))) {
return false;
}
}
return true;
|
public synchronized java.lang.Object | get(int index)
return _containedObjects.get(index);
|
public synchronized int | getSize()
return _containedObjects.size();
|