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(RXArchiver anArchiver,
RXElement 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.
|
RXElement |
toXML(RXArchiver anArchiver)
XML archival.
|
clone, compare, Compare, getJSONKeys, getKey, getOrder, getOrderDefault, getOrderString, setKey, setOrder, setOrderString, sort, sort, sort, sort, sort, sortedList, sortedList, sortedList, toggleOrderpublic 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 RXElement toXML(RXArchiver anArchiver)
toXML in interface ArchivabletoXML in class RMSortpublic java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement)
fromXML in interface ArchivablefromXML in class RMSort