All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.anotheria.util.sorter.Sorter Maven / Gradle / Ivy

There is a newer version: 4.0.0
Show newest version
package net.anotheria.util.sorter;

import java.util.Enumeration;
import java.util.List;


/**
 * A Sorter interface.
 *
 * @author another
 * @version $Id: $Id
 */
public interface Sorter {
    /**
     * Sorts the given List of IFIComparables after given method and order.
     *
     * @param source a {@link java.util.List} object.
     * @param how a {@link net.anotheria.util.sorter.SortType} object.
     * @return a {@link java.util.List} object.
     */
    List sort(List source, SortType how);

 	/**
 	 * Sorts the given Enumeration of IFIComparables after given method and order.
 	 *
 	 * @deprecated Use {@link #sort(List, SortType)} instead
 	 * @param source a {@link java.util.Enumeration} object.
 	 * @param how a {@link net.anotheria.util.sorter.SortType} object.
 	 * @return a {@link java.util.List} object.
 	 */
 	@Deprecated
    List sort(Enumeration source, SortType how);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy