org.omnaest.utils.structure.table.concrete.predicates.internal.filter
Class ColumnHaveDistinctRows<E>

java.lang.Object
  extended by org.omnaest.utils.structure.table.concrete.predicates.internal.filter.ColumnHaveDistinctRows<E>
All Implemented Interfaces:
Serializable, PredicateFilter<E>, TableSelectable.Predicate<E>

public class ColumnHaveDistinctRows<E>
extends Object
implements PredicateFilter<E>

Filters all duplicate Rows / Rows with the same Table.Column values will be collapsed to one.

Author:
Omnaest
See Also:
TableSelectable.Predicate, PredicateFilter, Serialized Form

Nested Class Summary
protected static class ColumnHaveDistinctRows.StripeWrapperWithEqualsAndHashCode<E>
          ElementWrapper for a TableInternal.StripeData instance which redeclares equals and hashcode to use the TableInternal.StripeData.getCellElementList().
 
Constructor Summary
ColumnHaveDistinctRows()
          This is an internal used class.
 
Method Summary
 void filterStripeDataSet(Collection<TableBlock<E>> tableBlockCollection)
          Removes the TableInternal.StripeData instances of Rows from a given TableBlock.getRowStripeDataSet()
 Table.Column<E>[] getRequiredColumns()
          Returns the Table.Columns which are required for this PredicateFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColumnHaveDistinctRows

public ColumnHaveDistinctRows()
This is an internal used class. Use TableSelectable.Selection.distinct() instead.

Method Detail

filterStripeDataSet

public void filterStripeDataSet(Collection<TableBlock<E>> tableBlockCollection)
Description copied from interface: PredicateFilter
Removes the TableInternal.StripeData instances of Rows from a given TableBlock.getRowStripeDataSet()

Specified by:
filterStripeDataSet in interface PredicateFilter<E>

getRequiredColumns

public Table.Column<E>[] getRequiredColumns()
Description copied from interface: PredicateFilter
Returns the Table.Columns which are required for this PredicateFilter

Specified by:
getRequiredColumns in interface PredicateFilter<E>
Returns:


Copyright © 2011. All Rights Reserved.