vqServer API Class vq.utils.kolist

java.lang.Object
    |
    +----vq.utils.kllist
            |
            +----vq.utils.kolist
Contents
Package index
Package
API index

public class kolist
extends kllist
Linked list whose entries are (descendants of) koentry. Represents a list of key:object pairs.

See Also:
koentry

Constructor Index

 o kolist()
 

Method Index

 o addData(String, Object)
Creates a new entry (a koentry) with the specified key and object and adds it to the end of the list.
 o addData(String, Object, klentry)
Creates a new entry (a koentry) with the specified key and object specified and adds it to the list at the specified position.
 o enumObj()
Returns an enumeration of the objects of in the list.
 o getByObject(Object)
Returns the first list entry with the specified object or null if no matching entry is found.
 o getObject(String)
Returns the first object associated with the specified key in the list or null if no matching entry is found.

Constructor Detail

 o kolist
public kolist()

Method Detail

 o addData
public void addData(java.lang.String newKey,
                    java.lang.Object newObject,
                    klentry prevEntry)
          Creates a new entry (a koentry) with the specified key and object specified and adds it to the list at the specified position. Warning: does not check the list membership of prevEntry.
Parameters:
newKey - the key of the new entry
newObject - the object associated with the new entry
prevEntry - the entry which will precede the new entry in the list
 o addData
public void addData(java.lang.String tkey,
                    java.lang.Object tobject)
          Creates a new entry (a koentry) with the specified key and object and adds it to the end of the list.
Parameters:
newKey - the key of the new entry
newObject - the object associated with the new entry
 o getObject
public java.lang.Object getObject(java.lang.String theKey)
          Returns the first object associated with the specified key in the list or null if no matching entry is found.
Parameters:
theKey - the key to search for
Returns:
the first object associated with the specified key in the list
 o getByObject
public koentry getByObject(java.lang.Object theObject)
          Returns the first list entry with the specified object or null if no matching entry is found.
Parameters:
theObject - the object to search for
Returns:
the first list entry associated with the specified object
 o enumObj
public vq.utils.koenumobj enumObj()
          Returns an enumeration of the objects of in the list.
Returns:
an enumeration of the objects of in the list
See Also:
java.util.Enumeration


vqServer API version 1.9. vqServer and the vqServer API are copyright © Steve Shering and vqSoft 1997-2000. Last updated 15 May 2000.

Contents
Package index
Package
API index