Class UniqFilter

All Implemented Interfaces:
Cloneable, ChainableReader, TokenFilter.Filter

public class UniqFilter extends TokenFilter.ChainableReaderFilter
Like the Unix uniq(1) command, only returns tokens that are different from their ancestor token.

This filter is probably most useful if used together with a sortfilter.

Ant 1.8.0
  • Constructor Details

    • UniqFilter

      public UniqFilter()
  • Method Details

    • filter

      public String filter(String string)
      Description copied from interface: TokenFilter.Filter
      filter and/of modify a string
      string - the string to filter
      the modified string or null if the string did not pass the filter