com.browseengine.bobo.facets.data
Class TermStringList
java.lang.Object
com.browseengine.bobo.facets.data.TermValueList<String>
com.browseengine.bobo.facets.data.TermStringList
- All Implemented Interfaces:
- Iterable<String>, Collection<String>, List<String>
public class TermStringList
- extends TermValueList<String>
| Methods inherited from class com.browseengine.bobo.facets.data.TermValueList |
add, addAll, addAll, clear, containsAll, get, getInnerList, getRawValue, getType, indexOfWithOffset, isEmpty, iterator, lastIndexOf, listIterator, listIterator, main, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TermStringList
public TermStringList(int capacity)
TermStringList
public TermStringList()
add
public boolean add(String o)
- Description copied from class:
TermValueList
- Add a new value to the list. It is important to add the values in sorted (ASC) order.
Our algorithm uses binary searches and priority queues, both of which fails when the ordering is wrong.
- Specified by:
add in interface Collection<String>- Specified by:
add in interface List<String>- Specified by:
add in class TermValueList<String>
buildPrimitiveList
protected List<?> buildPrimitiveList(int capacity)
- Specified by:
buildPrimitiveList in class TermValueList<String>
contains
public boolean contains(Object o)
- Specified by:
contains in interface Collection<String>- Specified by:
contains in interface List<String>- Overrides:
contains in class TermValueList<String>
format
public String format(Object o)
- Specified by:
format in class TermValueList<String>
indexOf
public int indexOf(Object o)
- Specified by:
indexOf in interface List<String>- Specified by:
indexOf in class TermValueList<String>
seal
public void seal()
- Specified by:
seal in class TermValueList<String>
containsWithType
public boolean containsWithType(String val)
- Specified by:
containsWithType in class TermValueList<String>
indexOfWithType
public int indexOfWithType(String o)
- Specified by:
indexOfWithType in class TermValueList<String>
Copyright © 2011. All Rights Reserved.