ir.webutils
Class StringSearchResult

java.lang.Object
  extended by ir.webutils.StringSearchResult

public class StringSearchResult
extends java.lang.Object

Lightweight object for storing both the number of DIFFERENT strings in a set of search strings that are found in a text as well as the total number of occurrences in the text of ANY of the strings in the set.


Field Summary
 int numberFound
          Number of different strings found
 int numberOccurrences
          Total number of occurrences of any of the strings
 
Constructor Summary
StringSearchResult(int numberFound, int numberOccurrences)
          Construct result with a given numberFound and numberOccurrences
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

numberFound

public int numberFound
Number of different strings found


numberOccurrences

public int numberOccurrences
Total number of occurrences of any of the strings

Constructor Detail

StringSearchResult

public StringSearchResult(int numberFound,
                          int numberOccurrences)
Construct result with a given numberFound and numberOccurrences