com.abra.j2xb.annotations
Interface MOCollectionCustomSort.CustomSort

Enclosing class:
MOCollectionCustomSort

public static interface MOCollectionCustomSort.CustomSort

Implements the custom sorting algorithm declared using the MOCollectionCustomSort annotation.

When implementing this interface it is required to expose a public no-parameters constructor.

Since:
JDK1.5
Version:
1.0, Dec 10, 2007
Author:
Yoav Abrahami
See Also:
MOCollectionCustomSort

Method Summary
<A> java.util.List<A>
sort(java.util.Collection<A> collection)
          Sorts a collection using a custom sorting algorithm.
 

Method Detail

sort

<A> java.util.List<A> sort(java.util.Collection<A> collection)
Sorts a collection using a custom sorting algorithm.

Parameters:
collection - - the collection to be sorted.
Returns:
the sorted collection


Copyright © 2008. All Rights Reserved.