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

tk.hongkailiu.test.app.helper.CollectionHelper Maven / Gradle / Ivy

The newest version!
package tk.hongkailiu.test.app.helper;

import java.util.List;

public interface CollectionHelper {
    /**
     *
     * @param list td
     * @param  td
     * @return td
     */
    public  List removeDuplicate(List list);

    /**
     * Returns true if the iterables have the same elements in the same order.
     *
     * @param i1 td
     * @param i2 td
     * @param  td
     * @return td
     */
    public  boolean elementsEqual(Iterable i1, Iterable i2);

    /**
     * Returns true if each element in iterable after the first is greater than
     * or equal to the element that preceded it, according to this ordering.
     * Note that this is always true when the iterable has fewer than two
     * elements.
     *
     * @param iterable td
     * @param  td
     * @return td
     */
    public  boolean isOrdered(Iterable> iterable);

    /**
     * Returns a reversed view of the specified list. For example,
     * Lists.reverse(Arrays.asList(1, 2, 3)) returns a list containing 3, 2, 1.
     * The returned list is backed by this list, so changes in the returned list
     * are reflected in this list, and vice-versa. The returned list supports
     * all of the optional list operations supported by this list. The returned
     * list is random-access if the specified list is random access.
     *
     * @param list td
     * @param  td
     * @return td
     */
    public  List reverse(List list);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy