319 * If the attribute values are unordered,
320 * this method sets the value that happens to be at that index
321 * to {@code attrVal}, unless {@code attrVal} is already one of the values.
322 * In that case, {@code IllegalStateException} is thrown.
323 *
324 * @param ix The index of the value in the ordered list of attribute values.
325 * {@code 0 <= ix < size()}.
326 * @param attrVal The possibly null attribute value to use.
327 * If null, 'null' replaces the old value.
328 * @return The possibly null attribute value at index ix that was replaced.
329 * Null if the attribute value was null.
330 * @exception IndexOutOfBoundsException If {@code ix} is outside the specified range.
331 * @exception IllegalStateException If {@code attrVal} already exists and the
332 * attribute values are unordered.
333 */
334 Object set(int ix, Object attrVal);
335
336 /**
337 * Use serialVersionUID from JNDI 1.1.1 for interoperability.
338 */
339 static final long serialVersionUID = 8707690322213556804L;
340 }
|
319 * If the attribute values are unordered,
320 * this method sets the value that happens to be at that index
321 * to {@code attrVal}, unless {@code attrVal} is already one of the values.
322 * In that case, {@code IllegalStateException} is thrown.
323 *
324 * @param ix The index of the value in the ordered list of attribute values.
325 * {@code 0 <= ix < size()}.
326 * @param attrVal The possibly null attribute value to use.
327 * If null, 'null' replaces the old value.
328 * @return The possibly null attribute value at index ix that was replaced.
329 * Null if the attribute value was null.
330 * @exception IndexOutOfBoundsException If {@code ix} is outside the specified range.
331 * @exception IllegalStateException If {@code attrVal} already exists and the
332 * attribute values are unordered.
333 */
334 Object set(int ix, Object attrVal);
335
336 /**
337 * Use serialVersionUID from JNDI 1.1.1 for interoperability.
338 */
339 @SuppressWarnings("serial") // serialVersionUID in an interface is ineffectual
340 static final long serialVersionUID = 8707690322213556804L;
341 }
|