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

org.directwebremoting.datasync.ComparatorFactory Maven / Gradle / Ivy

Go to download

DWR is easy Ajax for Java. It makes it simple to call Java code directly from Javascript. It gets rid of almost all the boilerplate code between the web browser and your Java code. This version 4.0.2 works with Jakarta Servlet 4.0.2.

The newest version!
package org.directwebremoting.datasync;

import java.util.Comparator;

/**
 * We need a way to get a comparator for a given property of a given type.
 * @author Joe Walker [joe at getahead dot ltd dot uk]
 */
public interface ComparatorFactory
{
    /**
     * Return a Comparator which will sort 2 objects of type T based on the
     * values held in the given property
     * @param property ...
     * @param ascending ...
     * @return ...
     */
    Comparator getComparator(String property, boolean ascending);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy