Package org.apache.juneau.objecttools
Class ObjectSorter
java.lang.Object
org.apache.juneau.objecttools.ObjectSorter
- All Implemented Interfaces:
- ObjectTool<SortArgs>
POJO model sorter.
 
This class is designed to sort arrays and collections of maps or beans.
Example:
   MyBean[] 
The tool can be used against the following data types:
- Arrays/collections of maps or beans.
   The arguments are a simple comma-delimited list of property names optionally suffixed with 
See Also:
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Field Details- 
DEFAULTDefault reusable searcher.
 
- 
- 
Constructor Details- 
ObjectSorterpublic ObjectSorter()
 
- 
- 
Method Details- 
createStatic creator.- Returns:
- A new ObjectSorterobject.
 
- 
runConvenience method for executing the sorter.- Type Parameters:
- R- The return type.
- Parameters:
- input- The input.
- sortArgs- The sort arguments. See- SortArgsfor format.
- Returns:
- A list of maps/beans matching the
 
- 
runDescription copied from interface:ObjectToolConverts the specified input to some other output.- Specified by:
- runin interface- ObjectTool<SortArgs>
- Parameters:
- session- The current bean session.
- input- The input POJO.
- args- The arguments.
- Returns:
- The output POJO.
 
 
-