opennlp.grok.util
Class CatStack

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.AbstractSequentialList
                    |
                    +--gnu.trove.TLinkedList
                          |
                          +--opennlp.grok.util.CatStack
All Implemented Interfaces:
java.util.Collection, java.util.List, java.io.Serializable

public class CatStack
extends gnu.trove.TLinkedList

A stack that contains categories.

Version:
$Revision: 1.1 $, $Date: 2002/02/19 17:27:17 $
Author:
Jason Baldridge
See Also:
Serialized Form

Field Summary
 
Fields inherited from class gnu.trove.TLinkedList
_head, _size, _tail
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
CatStack()
           
CatStack(CatStack cs)
           
 
Method Summary
 void addHead(opennlp.common.synsem.Category c)
           
 void addTail(opennlp.common.synsem.Category c)
           
 CatStack copy()
           
 opennlp.common.synsem.Category getHead()
           
 opennlp.common.synsem.Category getTail()
           
 CatStack sublistCopy(int upto)
           
 java.lang.String toString()
           
 
Methods inherited from class gnu.trove.TLinkedList
add, add, addBefore, addFirst, addLast, clear, contains, getFirst, getLast, insert, listIterator, remove, removeFirst, removeLast, size, toArray, toUnlinkedArray
 
Methods inherited from class java.util.AbstractSequentialList
addAll, get, iterator, remove, set
 
Methods inherited from class java.util.AbstractList
equals, hashCode, indexOf, lastIndexOf, listIterator, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, removeAll, retainAll, toArray
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
addAll, containsAll, isEmpty, removeAll, retainAll, toArray
 

Constructor Detail

CatStack

public CatStack()

CatStack

public CatStack(CatStack cs)
Method Detail

getHead

public opennlp.common.synsem.Category getHead()

getTail

public opennlp.common.synsem.Category getTail()

addHead

public void addHead(opennlp.common.synsem.Category c)

addTail

public void addTail(opennlp.common.synsem.Category c)

copy

public CatStack copy()

sublistCopy

public CatStack sublistCopy(int upto)

toString

public java.lang.String toString()
Overrides:
toString in class java.util.AbstractCollection


Copyright © 2003 Jason Baldridge and Gann Bierner. All Rights Reserved.