Class UniqFilter

  • All Implemented Interfaces:
    java.lang.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.

    Since:
    Ant 1.8.0
    • Constructor Detail

      • UniqFilter

        public UniqFilter()
    • Method Detail

      • filter

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