ir.vsr
Class TokenOccurrence

java.lang.Object
  extended by ir.vsr.TokenOccurrence

public class TokenOccurrence
extends java.lang.Object

A lightweight object for storing information about an occurrence of a token (a.k.a word, term) in a Document.


Field Summary
 int count
          The number of times it occurs in the Document
 DocumentReference docRef
          A reference to the Document where it occurs
 
Constructor Summary
TokenOccurrence(DocumentReference docRef, int count)
          Create an occurrence with these values
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

docRef

public DocumentReference docRef
A reference to the Document where it occurs


count

public int count
The number of times it occurs in the Document

Constructor Detail

TokenOccurrence

public TokenOccurrence(DocumentReference docRef,
                       int count)
Create an occurrence with these values

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object