public class DefaultDistinctValuesHolder extends Object implements DistinctValuesHolder
Constructor and Description |
---|
DefaultDistinctValuesHolder(List<PivotHeaderRow> headerRows) |
Modifier and Type | Method and Description |
---|---|
int |
addValueIfNotExist(int headerGroupingLevel,
Object value)
adds a new value in the list of distinct values
|
int |
getDistinctValuesCountForLevel(int level) |
List<Object> |
getDistinctValuesForLevel(int level) |
int |
getIndexFor(int headerGroupingLevel,
Object value)
returns the index of the specified value in the array of distinct values for the given level
|
int |
getRowsCount() |
String |
toString() |
public DefaultDistinctValuesHolder(List<PivotHeaderRow> headerRows)
headerRows
- public int addValueIfNotExist(int headerGroupingLevel, Object value)
addValueIfNotExist
in interface DistinctValuesHolder
headerRowId
- value
- public int getIndexFor(int headerGroupingLevel, Object value)
getIndexFor
in interface DistinctValuesHolder
headerGroupingLevel
- value
- public List<Object> getDistinctValuesForLevel(int level)
getDistinctValuesForLevel
in interface DistinctValuesHolder
level
- public int getDistinctValuesCountForLevel(int level)
getDistinctValuesCountForLevel
in interface DistinctValuesHolder
level
- public int getRowsCount()
getRowsCount
in interface DistinctValuesHolder
Copyright © 2006–2015. All rights reserved.