![JAR search and dependency download from the Maven repository](/logo.png)
com.vaadin.data.util.DefaultItemSorter Maven / Gradle / Ivy
/*
* Vaadin Framework 7
*
* Copyright (C) 2000-2024 Vaadin Ltd
*
* This program is available under Vaadin Commercial License and Service Terms.
*
* See for the full
* license.
*/
package com.vaadin.data.util;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Comparator;
import java.util.List;
import com.vaadin.data.Container;
import com.vaadin.data.Container.Sortable;
import com.vaadin.data.Item;
import com.vaadin.data.Property;
/**
* Provides a default implementation of an ItemSorter. The
* DefaultItemSorter
adheres to the
* {@link Sortable#sort(Object[], boolean[])} rules and sorts the container
* according to the properties given using
* {@link #setSortProperties(Sortable, Object[], boolean[])}.
*
* A Comparator is used for comparing the individual Property
* values. The comparator can be set using the constructor. If no comparator is
* provided a default comparator is used.
*
*/
public class DefaultItemSorter implements ItemSorter {
private java.lang.Object[] sortPropertyIds;
private boolean[] sortDirections;
private Container container;
private Comparator
© 2015 - 2025 Weber Informatics LLC | Privacy Policy