org.ontobox.box.helper
Class Sorter

java.lang.Object
  extended by org.ontobox.box.helper.Sorter

public class Sorter
extends java.lang.Object

Author:
Anton Malykh

Nested Class Summary
protected static class Sorter.ObjectValue<T extends java.lang.Comparable>
           
protected static class Sorter.ObjectValueIgnoreCase
           
 
Constructor Summary
Sorter()
           
 
Method Summary
static int[] sort(BoxWorker worker, int[] objects, SortMode mode, int tprop)
           
static int[] sortIgnoreCase(BoxWorker worker, int[] objects, SortMode mode, int tprop)
           
static
<T extends java.lang.Comparable>
int[]
sortTyped(int[] objects, SortMode mode, org.ontobox.box.helper.Sorter.ObjectValueGenerator<T> generate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sorter

public Sorter()
Method Detail

sort

public static int[] sort(BoxWorker worker,
                         int[] objects,
                         SortMode mode,
                         int tprop)

sortTyped

public static <T extends java.lang.Comparable> int[] sortTyped(int[] objects,
                                                               SortMode mode,
                                                               org.ontobox.box.helper.Sorter.ObjectValueGenerator<T> generate)

sortIgnoreCase

public static int[] sortIgnoreCase(BoxWorker worker,
                                   int[] objects,
                                   SortMode mode,
                                   int tprop)