public int size() { return getLength(); }
/** * Returns the <code>index</code>th item in the collection or * <code>null</code> if <code>index</code> is greater than or equal to * the number of objects in the list. The index starts at 0. * @param index index into the collection. * @return The <code>XSObject</code> at the <code>index</code>th * position in the <code>XSObjectList</code>, or <code>null</code> if * the index specified is not valid. */ public synchronized XSObject item(int index) { if (fArray == null) { // calculate the total number of elements getLength(); fArray = new XSObject[fLength]; int pos = 0; // get components from all SymbolHashes for (int i = 0; i < fNSNum; i++) { pos += fMaps[i].getValues(fArray, pos); } } if (index < 0 || index >= fLength) { return null; } return fArray[index]; }
public synchronized Set entrySet() { final int length = getLength(); final XSNamedMapEntry[] entries = new XSNamedMapEntry[length]; for (int i = 0; i < length; ++i) {