gzz.util
Interface StringSearcher

All Known Implementing Classes:
InitialStringSearcher

public interface StringSearcher

An interface for storing a set of strings with keys and searchig from them. The search behaviour, i.e. whether we search for initial substrings, case-free substrings or occurrences is not specified by this interface; rather, different objects exist for different algorithms (the Strategy pattern in GOF).


Method Summary
 void addString(java.lang.String s, java.lang.Object value)
           
 java.util.Collection search(java.lang.String s)
          Search for the given string.
 

Method Detail

addString

public void addString(java.lang.String s,
                      java.lang.Object value)

search

public java.util.Collection search(java.lang.String s)
Search for the given string. The returned collection may not be modified.