Class RowNameFilter<M extends Matrix2D<R,​C,​V>,​R,​C,​V>

  • All Implemented Interfaces:
    Filter<M,​R,​C,​V>

    public class RowNameFilter<M extends Matrix2D<R,​C,​V>,​R,​C,​V>
    extends AbstractFilter<M,​R,​C,​V>
    Remove or retain rows that are on a list.
    Author:
    Paul Pavlidis
    • Constructor Detail

      • RowNameFilter

        public RowNameFilter()
      • RowNameFilter

        public RowNameFilter​(Set<R> namesToFilter)
        Parameters:
        namesToFilter -
      • RowNameFilter

        public RowNameFilter​(Set<R> namesToFilter,
                             boolean exclude)
        Parameters:
        namesToFilter -
        exclude - Set to true if you want the list to indicate items to be skipped, rather than selected.
    • Method Detail

      • filter

        public M filter​(M data)
        Filter according to row names.
        Parameters:
        data -
        Returns:
      • setFilterNames

        public void setFilterNames​(Set<R> namesToFilter,
                                   boolean exclude)