com.browseengine.bobo.facets.data
Class TermCharList

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

public class TermCharList
extends TermValueList<Character>


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

TermCharList

public TermCharList()

TermCharList

public TermCharList(int capacity)
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<Character>

buildPrimitiveList

protected List<?> buildPrimitiveList(int capacity)
Specified by:
buildPrimitiveList in class TermValueList<Character>

containsWithType

public boolean containsWithType(Character val)
Specified by:
containsWithType in class TermValueList<Character>

containsWithType

public boolean containsWithType(char val)

indexOf

public int indexOf(Object o)
Specified by:
indexOf in interface List<String>
Specified by:
indexOf in class TermValueList<Character>

indexOfWithType

public int indexOfWithType(Character val)
Specified by:
indexOfWithType in class TermValueList<Character>

indexOfWithType

public int indexOfWithType(char val)

seal

public void seal()
Specified by:
seal in class TermValueList<Character>

format

public String format(Object o)
Specified by:
format in class TermValueList<Character>


Copyright © 2011. All Rights Reserved.