Class UniqFilter

  extended by
      extended by
          extended by
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.

Ant 1.8.0

Field Summary
Fields inherited from class
description, location, project
Constructor Summary
Method Summary
 java.lang.String filter(java.lang.String string)
          filter and/of modify a string
Methods inherited from class
chain, setByLine
Methods inherited from class
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public UniqFilter()
Method Detail


public java.lang.String filter(java.lang.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