org.pentaho.reporting.engine.classic.core.states
Class DefaultGroupingState

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.states.DefaultGroupingState
All Implemented Interfaces:
GroupingState

public class DefaultGroupingState
extends Object
implements GroupingState

Todo: Document Me

Author:
Thomas Morgner

Field Summary
static GroupingState EMPTY
           
 
Constructor Summary
DefaultGroupingState(int currentGroup, org.pentaho.reporting.libraries.base.util.FastStack groupStarts)
           
 
Method Summary
 int getCurrentGroup()
           
 int getGroupStartRow(int group)
           
 int getGroupStartRow(String group)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY

public static final GroupingState EMPTY
Constructor Detail

DefaultGroupingState

public DefaultGroupingState(int currentGroup,
                            org.pentaho.reporting.libraries.base.util.FastStack groupStarts)
Method Detail

getCurrentGroup

public int getCurrentGroup()
Specified by:
getCurrentGroup in interface GroupingState

getGroupStartRow

public int getGroupStartRow(String group)
Specified by:
getGroupStartRow in interface GroupingState

getGroupStartRow

public int getGroupStartRow(int group)
Specified by:
getGroupStartRow in interface GroupingState