Package net.sf.jasperreports.data.cache
Class ObjectArrayStore<T>
- java.lang.Object
-
- net.sf.jasperreports.data.cache.ObjectArrayStore<T>
-
- All Implemented Interfaces:
ArrayStore
,BufferColumnStore
,ColumnStore
public class ObjectArrayStore<T> extends Object implements BufferColumnStore, ArrayStore
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description ObjectArrayStore(Class<T> valuesType, int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addValue(Object object)
void
copyValue(int destIdx, int sourceIdx)
int
count()
ColumnValues
createValues()
boolean
full()
Class<?>
getBaseValuesType()
void
resetValues()
protected int
size()
String
toString()
void
updateCount(int count)
protected Object[]
valuesBuffer()
boolean
valuesEqual(int idx1, int idx2)
-
-
-
Method Detail
-
size
protected int size()
-
valuesBuffer
protected Object[] valuesBuffer()
-
getBaseValuesType
public Class<?> getBaseValuesType()
- Specified by:
getBaseValuesType
in interfaceColumnStore
-
count
public int count()
- Specified by:
count
in interfaceArrayStore
-
valuesEqual
public boolean valuesEqual(int idx1, int idx2)
- Specified by:
valuesEqual
in interfaceArrayStore
-
copyValue
public void copyValue(int destIdx, int sourceIdx)
- Specified by:
copyValue
in interfaceArrayStore
-
updateCount
public void updateCount(int count)
- Specified by:
updateCount
in interfaceArrayStore
-
addValue
public void addValue(Object object)
- Specified by:
addValue
in interfaceColumnStore
-
full
public boolean full()
- Specified by:
full
in interfaceBufferColumnStore
-
resetValues
public void resetValues()
- Specified by:
resetValues
in interfaceBufferColumnStore
-
createValues
public ColumnValues createValues()
- Specified by:
createValues
in interfaceColumnStore
-
-