- public class kolist
- extends kllist
Linked list whose entries are (descendants of) koentry.
Represents a list of key:object pairs.
- See Also:
- koentry
kolist()
-
addData(String, Object)
- Creates a new entry (a koentry) with the specified key and object and adds it to the
end of the list.
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.
enumObj()
- Returns an enumeration of the objects of in the list.
getByObject(Object)
- Returns the first list entry with the specified object
or null if no matching entry is found.
getObject(String)
- Returns the first object associated with the specified key in the list
or null if no matching entry is found.
kolist
public kolist()
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
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
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
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
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