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(XMLArchiver anArchiver,
XMLElement anElement)
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.
|
XMLElement |
toXML(XMLArchiver anArchiver)
XML archival.
|
clone, compare, Compare, 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 XMLElement toXML(XMLArchiver anArchiver)
public java.lang.Object fromXML(XMLArchiver anArchiver, XMLElement anElement)