org.gjt.lindfors.util
Class BoundBuffer

java.lang.Object
  extended by java.util.AbstractCollection
      extended by org.gjt.lindfors.util.BoundBuffer
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable, java.util.Collection

public class BoundBuffer
extends java.util.AbstractCollection
implements java.io.Serializable

...

Author:
Juha Lindfors
See Also:
Serialized Form

Field Summary
static int DEFAULT_CAPACITY
           
 
Constructor Summary
BoundBuffer()
           
BoundBuffer(java.util.Collection col)
           
BoundBuffer(java.util.Collection col, int capacity)
           
BoundBuffer(int capacity)
           
 
Method Summary
 boolean add(java.lang.Object o)
           
 void clear()
           
 java.util.Iterator iterator()
           
 int size()
           
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
equals, hashCode
 

Field Detail

DEFAULT_CAPACITY

public static final int DEFAULT_CAPACITY
See Also:
Constant Field Values
Constructor Detail

BoundBuffer

public BoundBuffer()

BoundBuffer

public BoundBuffer(int capacity)

BoundBuffer

public BoundBuffer(java.util.Collection col)

BoundBuffer

public BoundBuffer(java.util.Collection col,
                   int capacity)
Method Detail

size

public int size()
Specified by:
size in interface java.util.Collection
Specified by:
size in class java.util.AbstractCollection

iterator

public java.util.Iterator iterator()
Specified by:
iterator in interface java.lang.Iterable
Specified by:
iterator in interface java.util.Collection
Specified by:
iterator in class java.util.AbstractCollection

add

public boolean add(java.lang.Object o)
Specified by:
add in interface java.util.Collection
Overrides:
add in class java.util.AbstractCollection

clear

public void clear()
Specified by:
clear in interface java.util.Collection
Overrides:
clear in class java.util.AbstractCollection