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 DistinctValuesHolderheaderRowId - value - public int getIndexFor(int headerGroupingLevel,
Object value)
getIndexFor in interface DistinctValuesHolderheaderGroupingLevel - value - public List<Object> getDistinctValuesForLevel(int level)
getDistinctValuesForLevel in interface DistinctValuesHolderlevel - public int getDistinctValuesCountForLevel(int level)
getDistinctValuesCountForLevel in interface DistinctValuesHolderlevel - public int getRowsCount()
getRowsCount in interface DistinctValuesHolderCopyright © 2006–2015. All rights reserved.