Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.openscience.compchem
Class LIFOQueue  view LIFOQueue download LIFOQueue.java

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.Vector
              extended byorg.openscience.compchem.LIFOQueue
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.lang.Iterable, java.util.List, java.util.RandomAccess, java.io.Serializable

public class LIFOQueue
extends java.util.Vector

A LIFO queue for result structures. The Size is fixed so that one can use this to hold the 10 best structures, e. g.


Nested Class Summary
 
Nested classes inherited from class java.util.AbstractList
 
Field Summary
 int size
           
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
LIFOQueue(int size)
           
 
Method Summary
 java.lang.Object pop()
           
 void push(java.lang.Object O)
           
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.util.AbstractCollection
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Field Detail

size

public int size
Constructor Detail

LIFOQueue

public LIFOQueue(int size)
Method Detail

push

public void push(java.lang.Object O)

pop

public java.lang.Object pop()