Class StateSequence<T>
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.function.StateSequence<T>
-
- Type Parameters:
T
-
- All Implemented Interfaces:
Serializable
public class StateSequence<T> extends Object implements Serializable
Simple data structure to replace HashMap and improve Total functions performance- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StateSequence()
StateSequence(int capacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(ReportStateKey key, Sequence<T> result)
void
clear()
int
getKeyIndex(ReportStateKey key)
BulkArrayList<ReportStateKey>
getKeys()
Sequence<T>
getResult(int index)
void
update(int index, ReportStateKey key, Sequence<T> result)
-
-
-
Method Detail
-
clear
public void clear()
-
add
public void add(ReportStateKey key, Sequence<T> result)
-
update
public void update(int index, ReportStateKey key, Sequence<T> result)
-
getKeys
public BulkArrayList<ReportStateKey> getKeys()
-
getKeyIndex
public int getKeyIndex(ReportStateKey key)
-
-