org.kit.furia
Class Document.DocumentElement<T>

java.lang.Object
  extended by org.kit.furia.Document.DocumentElement<T>
Type Parameters:
O - The type of OB object that will be stored in this document.
Enclosing class:
Document<O extends org.ajmm.obsearch.OB>

public class Document.DocumentElement<T>
extends java.lang.Object

This class is used by the iterator of the Document class. It holds the O object and the number of times it appears in this document.

Since:
0
Author:
Arnoldo Jose Muller Molina

Constructor Summary
Document.DocumentElement(T object, IntegerHolder count)
           
 
Method Summary
 int getCount()
           
 T getObject()
           
protected  void inc()
          Increments the count for object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Document.DocumentElement

public Document.DocumentElement(T object,
                                IntegerHolder count)
Method Detail

getObject

public T getObject()
Returns:
The object that composes this element of the document.

getCount

public int getCount()
Returns:
The # of times this object has appeared in the document.

inc

protected void inc()
Increments the count for object.



Copyright © 2008 Arnoldo Jose Muller Molina. All Rights Reserved.