/** * Returns an independent copy of the list. * * @return A clone. * * @throws CloneNotSupportedException if an item in the list does not * support cloning. */ public Object clone() throws CloneNotSupportedException { return super.clone(); }
/** * Tests the list for equality with another object (typically also a list). * * @param o the other object. * * @return A boolean. */ public boolean equals(final Object o) { if (o instanceof BooleanList) { return super.equals(o); } return false; }
/** * Returns the object at the specified index, if there is one, or <code>null</code>. * * @param index the object index. * * @return The object or <code>null</code>. */ public Object get(final int index) { return super.get(index); }
/** * Tests this list for equality with another object. * * @param obj the object to test. * * @return A boolean. */ public boolean equals(final Object obj) { if (obj == null) { return false; } if (obj == this) { return true; } if (!(obj instanceof AbstractObjectList)) { return false; } final AbstractObjectList other = (AbstractObjectList) obj; final int listSize = size(); for (int i = 0; i < listSize; i++) { if (!ObjectUtilities.equal(get(i), other.get(i))) { return false; } } return true; }
/** * Returns a hash code value for the object. * * @return the hashcode */ public int hashCode() { return super.hashCode(); }
/** * 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); }
/** * Returns the index of the specified object, or -1 if the object is not in the list. * * @param object the object. * * @return The index or -1. */ public int indexOf(final Object object) { return super.indexOf(object); }
/** * Tests this list for equality with another object. * * @param obj the object to test. * * @return A boolean. */ public boolean equals(final Object obj) { if (obj == null) { return false; } if (obj == this) { return true; } if (!(obj instanceof AbstractObjectList)) { return false; } final AbstractObjectList other = (AbstractObjectList) obj; final int listSize = size(); for (int i = 0; i < listSize; i++) { if (!ObjectUtilities.equal(get(i), other.get(i))) { return false; } } return true; }
/** * Returns a hash code value for the object. * * @return the hashcode */ public int hashCode() { return super.hashCode(); }
/** * 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); }
/** * Returns the index of the specified object, or -1 if the object is not in the list. * * @param object the object. * * @return The index or -1. */ public int indexOf(final Object object) { return super.indexOf(object); }
/** * Tests this list for equality with another object. * * @param obj the object to test. * * @return A boolean. */ public boolean equals(final Object obj) { if (obj == null) { return false; } if (obj == this) { return true; } if (!(obj instanceof AbstractObjectList)) { return false; } final AbstractObjectList other = (AbstractObjectList) obj; final int listSize = size(); for (int i = 0; i < listSize; i++) { if (!ObjectUtilities.equal(get(i), other.get(i))) { return false; } } return true; }
/** * Returns a hash code value for the object. * * @return the hashcode */ public int hashCode() { return super.hashCode(); } }
/** * Tests the list for equality with another object (typically also a list). * * @param o the other object. * * @return A boolean. */ public boolean equals(final Object o) { if (o instanceof BooleanList) { return super.equals(o); } return false; }
/** * 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); }
/** * Returns an independent copy of the list. * * @return A clone. * * @throws CloneNotSupportedException if an item in the list does not support cloning. */ public Object clone() throws CloneNotSupportedException { return super.clone(); }
/** * Returns the object at the specified index, if there is one, or <code>null</code>. * * @param index the object index. * * @return The object or <code>null</code>. */ public Object get(final int index) { return super.get(index); }
/** * Returns the index of the specified object, or -1 if the object is not in the list. * * @param object the object. * * @return The index or -1. */ public int indexOf(final Object object) { return super.indexOf(object); }
/** * Provides serialization support. * * @param stream the output stream. * * @throws IOException if there is an I/O error. */ private void writeObject(final ObjectOutputStream stream) throws IOException { stream.defaultWriteObject(); final int count = size(); stream.writeInt(count); for (int i = 0; i < count; i++) { final Object object = get(i); if (object != null && object instanceof Serializable) { stream.writeInt(i); stream.writeObject(object); } else { stream.writeInt(-1); } } }
/** * Returns a hash code value for the object. * * @return the hashcode */ public int hashCode() { return super.hashCode(); } }