uk.ac.starlink.table.join
Interface ListStore


public interface ListStore

Defines how to store list contents in an object container. Intended for use with Collections. Effectively provides "boxing" for list-like objects.

Since:
3 Dec 2007

Method Summary
 Object addItem(Object value, Object item)
          Adds an item to a list storage element.
 List getList(Object value)
          Returns the value of an object as a List.
 

Method Detail

getList

public List getList(Object value)
Returns the value of an object as a List. value should either be null, or an object returned by this object's addItem(java.lang.Object, java.lang.Object) method.

Parameters:
value - list storage element
Returns:
list representing the content of value

addItem

public Object addItem(Object value,
                      Object item)
Adds an item to a list storage element. value should either be null, or an object returned by an earlier invocation of this method.

Parameters:
value - list storage element
item - object to append to the list
Returns:
new list storage element

Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved.