uk.ac.starlink.table
Interface ValueStore

All Known Implementing Classes:
ArrayPrimitiveStore

public interface ValueStore

Interface for storing a vector of values. Depending on implementation, these values may be objects or primitives.

Since:
2 Nov 2005

Method Summary
 void get(long index, Object array)
          Retrieves a vector of values from this object.
 long getLength()
          Returns the length of the vector.
 Class getType()
          Returns the class of value which this object can store.
 void put(long index, Object array)
          Stores a vector of values in this object.
 

Method Detail

getType

public Class getType()
Returns the class of value which this object can store.

Returns:
primitive class

getLength

public long getLength()
Returns the length of the vector.

Returns:
vector length

put

public void put(long index,
                Object array)
Stores a vector of values in this object. array must be an array of values matching getType. The first element of array is stored at index index, the second at index+1, etc.

Parameters:
index - starting offset
array - array of values to store

get

public void get(long index,
                Object array)
Retrieves a vector of values from this object. array must be an array of type matching getType. Every element of array will be filled with values; the first retrieved from offset index, the second from index+1, etc.

Parameters:
index - starting offset
array - array to accept data

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