/** * Returns the <code>index</code>th item in the map. The index starts at * 0. If <code>index</code> is greater than or equal to the number of * nodes in the list, this returns <code>null</code>. * @param index The position in the map from which the item is to be * retrieved. * @return The <code>XSObject</code> at the <code>index</code>th position * in the <code>XSNamedMap</code>, or <code>null</code> if that is * not a valid index. */ public synchronized XSObject item(int index) { if (fArray == null) { getLength(); } if (index < 0 || index >= fLength) { return null; } return fArray[index]; }