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

All Implemented Interfaces:
    LongCollection

Direct Known Subclasses:
    RandomAccessLongList, ArrayUnsignedIntList, RandomAccessLongSubList, LongCollectionImpl, AbstractRandomAccessLongListImpl, ArrayLongList

Abstract base class for LongCollection s.

Read-only subclasses must override #iterator and #size . Mutable subclasses should also override #add and LongIterator.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 AbstractLongCollection() 
Method from org.apache.commons.collections.primitives.AbstractLongCollection 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.AbstractLongCollection Detail:
 public boolean add(long element) 
    Unsupported in this base implementation.
 public boolean addAll(LongCollection c) 
 public  void clear() 
 public boolean contains(long element) 
 public boolean containsAll(LongCollection c) 
 public boolean isEmpty() 
 abstract public LongIterator iterator()
 public boolean removeAll(LongCollection c) 
 public boolean removeElement(long element) 
 public boolean retainAll(LongCollection c) 
 abstract public int size()
 public long[] toArray() 
 public long[] toArray(long[] a)