terp - the Codemesh Modular
Template Interpreter v1.3.309

com.codemesh.terp.api
Interface Sorter

All Known Implementing Classes:
Sorter.AbstractSorter

public interface Sorter

An interface implemented by concrete sorters. Sorters can be applied to collections. They return a copy of the collection that is sorted in accordance with the sorter's comparison rules.


Nested Class Summary
static class Sorter.AbstractSorter
          An abstract baseclass for concrete sorters.
 
Field Summary
static java.util.List<java.lang.Object> NO_ARGS
           
 
Method Summary
 java.util.Comparator getComparator(java.lang.Object owner)
          Returns the comparator that may be used for comparisons.
 java.util.Comparator getComparator(java.lang.Object owner, java.util.List<java.lang.Object> args)
          Returns the comparator that may be used for comparisons.
 

Field Detail

NO_ARGS

static final java.util.List<java.lang.Object> NO_ARGS
Method Detail

getComparator

java.util.Comparator getComparator(java.lang.Object owner)
Returns the comparator that may be used for comparisons.

Parameters:
owner - the collection being sorted.
Returns:
the comparator.

getComparator

java.util.Comparator getComparator(java.lang.Object owner,
                                   java.util.List<java.lang.Object> args)
Returns the comparator that may be used for comparisons.

Parameters:
owner - the collection being sorted.
args - comparator arguments.
Returns:
the comparator.

terp - the Codemesh Modular
Template Interpreter v1.3.309

Copyright © 2008-2012 by Codemesh, Inc. All Rights Reserved.