Home » openjdk-7 » com.sun.tools » javac » util » [javadoc | source]
com.sun.tools.javac.util
public class: ListBuffer [javadoc | source]
java.lang.Object
   java.util.AbstractCollection
      java.util.AbstractQueue<A>
         com.sun.tools.javac.util.ListBuffer

All Implemented Interfaces:
    Queue, Collection

Direct Known Subclasses:
    Apt

A class for constructing lists by appending elements. Modelled after java.lang.StringBuffer.

This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
Field Summary
public  List<A> elems    The list of elements of this buffer. 
public  List<A> last    A pointer pointing to the last, sentinel element of `elems'. 
public  int count    The number of element in this buffer. 
public  boolean shared    Has a list been created from this buffer yet? 
Constructor:
 public ListBuffer() 
Method from com.sun.tools.javac.util.ListBuffer Summary:
add,   addAll,   append,   appendArray,   appendList,   appendList,   clear,   contains,   containsAll,   first,   isEmpty,   iterator,   lb,   length,   next,   nonEmpty,   of,   offer,   peek,   poll,   prepend,   remove,   removeAll,   retainAll,   size,   toArray,   toArray,   toList
Methods from java.util.AbstractQueue:
add,   addAll,   clear,   element,   remove
Methods from java.util.AbstractCollection:
add,   addAll,   clear,   contains,   containsAll,   isEmpty,   iterator,   remove,   removeAll,   retainAll,   size,   toArray,   toArray,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sun.tools.javac.util.ListBuffer Detail:
 public boolean add(A a) 
 public boolean addAll(Collection<? extends A> c) 
 public ListBuffer<A> append(A x) 
    Append an element to buffer.
 public ListBuffer<A> appendArray(A[] xs) 
    Append all elements in an array to buffer.
 public ListBuffer<A> appendList(List<A> xs) 
    Append all elements in a list to buffer.
 public ListBuffer<A> appendList(ListBuffer<A> xs) 
    Append all elements in a list to buffer.
 public final  void clear() 
 public boolean contains(Object x) 
    Does the list contain the specified element?
 public boolean containsAll(Collection<?> c) 
 public A first() 
    The first element in this buffer.
 public boolean isEmpty() 
    Is buffer empty?
 public Iterator<A> iterator() 
    An enumeration of all elements in this buffer.
 public static ListBuffer<T> lb() 
 public int length() 
    Return the number of elements in this buffer.
 public A next() 
    Return first element in this buffer and remove
 public boolean nonEmpty() 
    Is buffer not empty?
 public static ListBuffer<T> of(T x) 
 public boolean offer(A a) 
 public A peek() 
 public A poll() 
 public ListBuffer<A> prepend(A x) 
    Prepend an element to buffer.
 public boolean remove(Object o) 
 public boolean removeAll(Collection<?> c) 
 public boolean retainAll(Collection<?> c) 
 public int size() 
 public Object[] toArray() 
 public T[] toArray(T[] vec) 
    Convert buffer to an array
 public List<A> toList() 
    Convert buffer to a list of all its elements.