org.dlese.dpc.index.reader
Class LazyDocumentMap.FieldNameList
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList
org.dlese.dpc.index.reader.LazyDocumentMap.FieldNameList
- All Implemented Interfaces:
- Iterable, Collection, List, Set
- Enclosing class:
- LazyDocumentMap
public class LazyDocumentMap.FieldNameList
- extends AbstractList
- implements Set
A List for field names in a Lucene Document.
- Author:
- John Weatherley
Methods inherited from class java.util.AbstractList |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList |
Methods inherited from interface java.util.Set |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, toArray, toArray |
LazyDocumentMap.FieldNameList
public LazyDocumentMap.FieldNameList(List fieldList)
- Constructor for the FieldNameList object
- Parameters:
fieldList
- A List of Fields
getFieldList
protected List getFieldList()
toString
public String toString()
- Overrides:
toString
in class AbstractCollection
get
public Object get(int i)
- Gets a field name String at the given position
- Specified by:
get
in interface List
- Specified by:
get
in class AbstractList
- Parameters:
i
- Postion
- Returns:
- Field name String
size
public int size()
- Number of Fields in the Document
- Specified by:
size
in interface Collection
- Specified by:
size
in interface List
- Specified by:
size
in interface Set
- Specified by:
size
in class AbstractCollection
- Returns:
- Number of Fields