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: AbstractIntCollection [javadoc | source]
java.lang.Object
   org.apache.commons.collections.primitives.AbstractIntCollection

All Implemented Interfaces:
    IntCollection

Direct Known Subclasses:
    ArrayUnsignedShortList, IntCollectionImpl, ArrayIntList, AbstractRandomAccessIntListImpl, RandomAccessIntSubList, RandomAccessIntList

Abstract base class for IntCollection s.

Read-only subclasses must override #iterator and #size . Mutable subclasses should also override #add and IntIterator.remove . 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.

Constructor:
 protected AbstractIntCollection() 
Method from org.apache.commons.collections.primitives.AbstractIntCollection Summary:
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.AbstractIntCollection Detail:
 public boolean add(int element) 
    Unsupported in this base implementation.
 public boolean addAll(IntCollection c) 
 public  void clear() 
 public boolean contains(int element) 
 public boolean containsAll(IntCollection c) 
 public boolean isEmpty() 
 abstract public IntIterator iterator()
 public boolean removeAll(IntCollection c) 
 public boolean removeElement(int element) 
 public boolean retainAll(IntCollection c) 
 abstract public int size()
 public int[] toArray() 
 public int[] toArray(int[] a)