public class RMTopNSort extends RMSort
COMPARATOR, ORDER_ASCEND, ORDER_DESCEND, ORDER_INDETERMINATE, ORDER_SAME
Constructor and Description |
---|
RMTopNSort()
Creates a new value sort.
|
RMTopNSort(java.lang.String aKey,
int anOrder,
int aCount,
boolean includeOthers)
Creates a new value sort.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object anObj)
Standard equals implementation.
|
java.lang.Object |
fromXML(com.reportmill.archiver.RXArchiver anArchiver,
com.reportmill.archiver.RXElement anElement,
java.lang.Object anOwner)
XML unarchival.
|
int |
getCount()
Returns the count.
|
boolean |
getIncludeOthers()
Returns whether to include others.
|
boolean |
getPad()
Returns whether to pad to top N value.
|
void |
setCount(int aCount)
Sets the count.
|
void |
setIncludeOthers(boolean includeOthers)
Sets whether to include others.
|
void |
setPad(boolean aValue)
Sets whether to pad to top N value.
|
java.lang.String |
toString()
Returns a string representation of top n sort.
|
com.reportmill.archiver.RXElement |
toXML(com.reportmill.archiver.RXArchiver anArchiver,
java.lang.Object anOwner)
XML archival.
|
clone, compare, Compare, getJSONKeys, getKey, getOrder, getOrderDefault, getOrderString, setKey, setOrder, setOrderString, sort, sort, sort, sort, sort, sortedList, sortedList, sortedList, toggleOrder
public RMTopNSort()
public RMTopNSort(java.lang.String aKey, int anOrder, int aCount, boolean includeOthers)
public int getCount()
public void setCount(int aCount)
public boolean getIncludeOthers()
public void setIncludeOthers(boolean includeOthers)
public boolean getPad()
public void setPad(boolean aValue)
public boolean equals(java.lang.Object anObj)
public com.reportmill.archiver.RXElement toXML(com.reportmill.archiver.RXArchiver anArchiver, java.lang.Object anOwner)
public java.lang.Object fromXML(com.reportmill.archiver.RXArchiver anArchiver, com.reportmill.archiver.RXElement anElement, java.lang.Object anOwner)