com.browseengine.bobo.facets.data
Class TermStringList

java.lang.Object
  extended by com.browseengine.bobo.facets.data.TermValueList<String>
      extended by com.browseengine.bobo.facets.data.TermStringList
All Implemented Interfaces:
Iterable<String>, Collection<String>, List<String>

public class TermStringList
extends TermValueList<String>


Field Summary
 
Fields inherited from class com.browseengine.bobo.facets.data.TermValueList
_innerList, _type
 
Constructor Summary
TermStringList()
           
 
Method Summary
 boolean add(String o)
          Add a new value to the list.
protected  List<?> buildPrimitiveList(int capacity)
           
 boolean contains(Object o)
           
 boolean containsWithType(String val)
           
 String format(Object o)
           
 int indexOf(Object o)
           
 int indexOfWithType(String o)
           
 void seal()
           
 
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
 
Methods inherited from interface java.util.List
equals, hashCode
 

Constructor Detail

TermStringList

public TermStringList()
Method Detail

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.