it.unimi.di.mg4j.document
Class AbstractDocumentFactory
java.lang.Object
it.unimi.di.mg4j.document.AbstractDocumentFactory
- All Implemented Interfaces:
- DocumentFactory, FlyweightPrototype<DocumentFactory>, Serializable
- Direct Known Subclasses:
- CompositeDocumentFactory, PropertyBasedDocumentFactory, ReplicatedDocumentFactory, SubDocumentFactory, TRECHeaderDocumentFactory, ZipDocumentCollection.ZipFactory
public abstract class AbstractDocumentFactory
- extends Object
- implements DocumentFactory
An abstract implementation of a factory, providing a protected method to check
for field indices.
- See Also:
- Serialized Form
AbstractDocumentFactory
public AbstractDocumentFactory()
ensureFieldIndex
protected void ensureFieldIndex(int index)
- Checks that the index is correct (between 0, inclusive, and
DocumentFactory.numberOfFields()
,
exclusive), and throws an IndexOutOfBoundsException
if the index is not correct.
- Parameters:
index
- the index to be checked.
toString
public String toString()
- Overrides:
toString
in class Object