/** * Sets an object reference (overwriting any existing object). * * @param index the object index. * @param object the object (<code>null</code> permitted). */ public void set(final int index, final Object object) { super.set(index, object); }
/** * Sets an object reference (overwriting any existing object). * * @param index the object index. * @param object the object (<code>null</code> permitted). */ public void set(final int index, final Object object) { super.set(index, object); }
/** * Sets an object reference (overwriting any existing object). * * @param index the object index. * @param object the object (<code>null</code> permitted). */ public void set(final int index, final Object object) { super.set(index, object); }
/** * Provides serialization support. * * @param stream the input stream. * * @throws IOException if there is an I/O error. * @throws ClassNotFoundException if there is a classpath problem. */ private void readObject(final ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); this.objects = new Object[this.size]; final int count = stream.readInt(); for (int i = 0; i < count; i++) { final int index = stream.readInt(); if (index != -1) { set(index, stream.readObject()); } } }
/** * Provides serialization support. * * @param stream the input stream. * * @throws IOException if there is an I/O error. * @throws ClassNotFoundException if there is a classpath problem. */ private void readObject(final ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); this.objects = new Object[this.size]; final int count = stream.readInt(); for (int i = 0; i < count; i++) { final int index = stream.readInt(); if (index != -1) { set(index, stream.readObject()); } } }
/** * Provides serialization support. * * @param stream the input stream. * * @throws IOException if there is an I/O error. * @throws ClassNotFoundException if there is a classpath problem. */ private void readObject(final ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); this.objects = new Object[this.size]; final int count = stream.readInt(); for (int i = 0; i < count; i++) { final int index = stream.readInt(); if (index != -1) { set(index, stream.readObject()); } } }