public abstract class

Sorter

extends Object
package org.andengine.util.algorithm.sort;

import java.util.Comparator;
import java.util.List;

import org.andengine.util.adt.list.IList;

/**
 * (c) 2010 Nicolas Gramlich 
 * (c) 2011 Zynga Inc.
 * 
 * @author Nicolas Gramlich
 * @since 14:14:39 - 06.08.2010
 * @param <T>
 */
public abstract class Sorter<T> {
	// ===========================================================
	// Constants
	// ===========================================================

	// ===========================================================
	// Fields
	// ===========================================================

	// ===========================================================
	// Constructors
	// ===========================================================

	// ===========================================================
	// Getter & Setter
	// ===========================================================

	// ===========================================================
	// Methods for/from SuperClass/Interfaces
	// ===========================================================

	public abstract void sort(final T[] pArray, final int pStart, final int pEnd, final Comparator<T> pComparator);
	public abstract void sort(final List<T> pList, final int pStart, final int pEnd, final Comparator<T> pComparator);
	public abstract void sort(final IList<T> pList, final int pStart, final int pEnd, final Comparator<T> pComparator);

	// ===========================================================
	// Methods
	// ===========================================================

	public final void sort(final T[] pArray, final Comparator<T> pComparator){
		this.sort(pArray, 0, pArray.length, pComparator);
	}

	public final void sort(final List<T> pList, final Comparator<T> pComparator){
		this.sort(pList, 0, pList.size(), pComparator);
	}

	public final void sort(final IList<T> pList, final Comparator<T> pComparator){
		this.sort(pList, 0, pList.size(), pComparator);
	}

	// ===========================================================
	// Inner and Anonymous Classes
	// ===========================================================
}