Package net.sf.jasperreports.data.cache
Class LongArrayStore
- java.lang.Object
-
- net.sf.jasperreports.data.cache.LongArrayStore
-
- All Implemented Interfaces:
ArrayStore
,BufferColumnStore
,ColumnStore
public class LongArrayStore extends Object implements BufferColumnStore, ArrayStore
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description LongArrayStore(int size)
LongArrayStore(int size, boolean useGCD)
LongArrayStore(int size, ValueTransformer valueTransformer)
LongArrayStore(int size, ValueTransformer valueTransformer, boolean useGCD)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(long value)
void
addValue(Object value)
protected long
computeGCD()
void
copyValue(int destIdx, int sourceIdx)
int
count()
ColumnValues
createValues()
boolean
full()
Class<?>
getBaseValuesType()
void
resetValues()
String
toString()
void
updateCount(int count)
boolean
valuesEqual(int idx1, int idx2)
-
-
-
Constructor Detail
-
LongArrayStore
public LongArrayStore(int size)
-
LongArrayStore
public LongArrayStore(int size, ValueTransformer valueTransformer)
-
LongArrayStore
public LongArrayStore(int size, boolean useGCD)
-
LongArrayStore
public LongArrayStore(int size, ValueTransformer valueTransformer, boolean useGCD)
-
-
Method Detail
-
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
-
add
public void add(long value)
-
addValue
public void addValue(Object value)
- 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
-
computeGCD
protected long computeGCD()
-
-