|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.starlink.table.storage.ArrayPrimitiveStore
public class ArrayPrimitiveStore
ValueStore implementation which stores primitive values in a normal java array.
| Constructor Summary | |
|---|---|
ArrayPrimitiveStore(Class clazz,
int size)
Constructs a new store. |
|
| Method Summary | |
|---|---|
void |
get(long index,
Object array,
int ioff,
int count)
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,
int ioff,
int count)
Stores a vector of values in this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArrayPrimitiveStore(Class clazz,
int size)
clazz must be
a primitive type such as int.class.
clazz - primitive type to storesize - length of the vector| Method Detail |
|---|
public Class getType()
ValueStore
getType in interface ValueStorepublic long getLength()
ValueStore
getLength in interface ValueStore
public void put(long index,
Object array,
int ioff,
int count)
ValueStorearray must be an array of values matching
getType. Element ioff of array
is stored at index index, elemnt ioff+1 at
index+1, etc.
put in interface ValueStoreindex - starting offset to write toarray - array of values to storeioff - offset into array from which the first value is takencount - number of values to transfer
public void get(long index,
Object array,
int ioff,
int count)
ValueStorearray 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.
get in interface ValueStoreindex - starting offsetarray - array to accept dataioff - offset into array to which the first value is copiedcount - number of values to transfer
|
Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||