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

All Implemented Interfaces:
    ByteCollection

Direct Known Subclasses:
    RandomAccessByteSubList, AbstractRandomAccessByteListImpl, RandomAccessByteList, ArrayByteList, ByteCollectionImpl

Abstract base class for ByteCollection s.

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