Save This Page
Home » commons-collections-3.2.1-src » org.apache.commons » collections » primitives » [javadoc | source]
org.apache.commons.collections.primitives
abstract public class: RandomAccessShortList [javadoc | source]
java.lang.Object
   org.apache.commons.collections.primitives.AbstractShortCollection
      org.apache.commons.collections.primitives.RandomAccessShortList

All Implemented Interfaces:
    ShortList, ShortCollection

Direct Known Subclasses:
    ArrayUnsignedByteList, RandomAccessShortSubList, ArrayShortList, AbstractRandomAccessShortListImpl

Abstract base class for ShortList s backed by random access structures like arrays.

Read-only subclasses must override #get and #size . Mutable subclasses should also override #set . Variably-sized subclasses should also override #add and #removeElementAt . All other methods have at least some base implementation derived from these. Subclasses may choose to override these methods to provide a more efficient implementation.

Nested Class Summary:
protected static class  RandomAccessShortList.RandomAccessShortListIterator   
protected static class  RandomAccessShortList.RandomAccessShortSubList   
Constructor:
 protected RandomAccessShortList() 
Method from org.apache.commons.collections.primitives.RandomAccessShortList Summary:
add,   add,   addAll,   equals,   get,   getModCount,   hashCode,   incrModCount,   indexOf,   iterator,   lastIndexOf,   listIterator,   listIterator,   removeElementAt,   set,   size,   subList,   toString
Methods from org.apache.commons.collections.primitives.AbstractShortCollection:
add,   addAll,   clear,   contains,   containsAll,   isEmpty,   iterator,   removeAll,   removeElement,   retainAll,   size,   toArray,   toArray
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.collections.primitives.RandomAccessShortList Detail:
 public boolean add(short element) 
 public  void add(int index,
    short element) 
    Unsupported in this implementation.
 public boolean addAll(int index,
    ShortCollection collection) 
 public boolean equals(Object that) 
 abstract public short get(int index)
 protected int getModCount() 
    Get my count of structural modifications.
 public int hashCode() 
 protected  void incrModCount() 
    Increment my count of structural modifications.
 public int indexOf(short element) 
 public ShortIterator iterator() 
 public int lastIndexOf(short element) 
 public ShortListIterator listIterator() 
 public ShortListIterator listIterator(int index) 
 public short removeElementAt(int index) 
    Unsupported in this implementation.
 public short set(int index,
    short element) 
    Unsupported in this implementation.
 abstract public int size()
 public ShortList subList(int fromIndex,
    int toIndex) 
 public String toString()