public class Sorting<T> extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Sorting.Order |
Constructor and Description |
---|
Sorting(Comparator<T> comparator)
A sorting object which will use a
Comparator to sort. |
Sorting(Sorting.Order order)
A sorting object with an order, i.e.
|
Modifier and Type | Method and Description |
---|---|
Comparator<T> |
getComparator()
The comparator used to sort.
|
Sorting.Order |
getOrder()
The order to sort, i.e.
|
String |
toString() |
public Sorting(Sorting.Order order)
order
- the order to sort.public Sorting(Comparator<T> comparator)
Comparator
to sort.comparator
- the comparatorComparator
public Sorting.Order getOrder()
public Comparator<T> getComparator()
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.