package com.orionplatform.data.data_structures.array;

import java.util.Arrays;
import java.util.Comparator;
import com.orionplatform.core.abstraction.OrionService;

public class ArraySortService<T> extends OrionService
{
    public static synchronized void sort(byte[] array)
    {
        Arrays.sort(array);
    }
    
    
    public static synchronized void sort(short[] array)
    {
        Arrays.sort(array);
    }
    
    
    public static synchronized void sort(int[] array)
    {
        Arrays.sort(array);
    }
    
    
    public static synchronized void sort(long[] array)
    {
        Arrays.sort(array);
    }
    
    
    public static synchronized void sort(float[] array)
    {
        Arrays.sort(array);
    }
    
    
    public static synchronized void sort(double[] array)
    {
        Arrays.sort(array);
    }
    
    
    public static synchronized void sort(char[] array)
    {
        Arrays.sort(array);
    }
    
    
    public static synchronized <T> void sort(T[] array)
    {
        Arrays.sort(array);
    }
    
    
    public static synchronized <T> void sort(T[] array, Comparator<T> comparator)
    {
        Arrays.sort(array, comparator);
    }
}