Save This Page
Home » mahout-collections-1.0-src » org.apache.mahout.math.list » [javadoc | source]
org.apache.mahout.math.list
abstract public class: AbstractObjectList [javadoc | source]
java.lang.Object
   org.apache.mahout.math.PersistentObject
      org.apache.mahout.math.list.AbstractList
         org.apache.mahout.math.list.AbstractObjectList

All Implemented Interfaces:
    Cloneable, Serializable

Direct Known Subclasses:
    ObjectArrayList

Abstract base class for resizable lists holding objects or primitive data types such as int, float, etc. First see the package summary and javadoc tree view to get the broad picture.

Note that this implementation is not synchronized.

Method from org.apache.mahout.math.list.AbstractObjectList Summary:
addAllOf,   beforeInsertAllOf,   replaceFromWith
Methods from org.apache.mahout.math.list.AbstractList:
beforeInsertDummies,   checkRange,   checkRangeFromTo,   clear,   isEmpty,   mergeSort,   mergeSortFromTo,   quickSort,   quickSortFromTo,   remove,   removeFromTo,   reverse,   setSize,   size,   sort,   sortFromTo,   trimToSize
Methods from org.apache.mahout.math.PersistentObject:
clone
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.mahout.math.list.AbstractObjectList Detail:
 public  void addAllOf(Collection<T> collection) 
    Appends all of the elements of the specified Collection to the receiver.
 public  void beforeInsertAllOf(int index,
    Collection<T> collection) 
    Inserts all elements of the specified collection before the specified position into the receiver. Shifts the element currently at that position (if any) and any subsequent elements to the right (increases their indices).
 abstract public  void replaceFromWith(int from,
    Collection<T> other)
    Replaces the part of the receiver starting at from (inclusive) with all the elements of the specified collection. Does not alter the size of the receiver. Replaces exactly Math.max(0,Math.min(size()-from, other.size())) elements.