com.browseengine.bobo.facets.data
Class TermIntList

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

public class TermIntList
extends TermNumberList<Integer>


Field Summary
 
Fields inherited from class com.browseengine.bobo.facets.data.TermNumberList
_formatString, _formatter
 
Fields inherited from class com.browseengine.bobo.facets.data.TermValueList
_innerList, _type
 
Constructor Summary
TermIntList()
           
TermIntList(int capacity, String formatString)
           
TermIntList(String formatString)
           
 
Method Summary
 boolean add(String o)
          Add a new value to the list.
protected  List<?> buildPrimitiveList(int capacity)
           
 void clear()
           
 boolean contains(int val)
           
 boolean containsWithType(int val)
           
 boolean containsWithType(Integer val)
           
 String get(int index)
           
 int getPrimitiveValue(int index)
           
 int indexOf(int val)
           
 int indexOf(Integer value)
           
 int indexOf(Object o)
           
 int indexOfWithOffset(Integer value, int offset)
           
 int indexOfWithOffset(int value, int offset)
           
 int indexOfWithOffset(Object value, int offset)
           
 int indexOfWithType(int val)
           
 int indexOfWithType(Integer val)
           
protected  Object parseString(String o)
           
 void seal()
           
 
Methods inherited from class com.browseengine.bobo.facets.data.TermNumberList
format, getFormatString, setFormatString
 
Methods inherited from class com.browseengine.bobo.facets.data.TermValueList
add, addAll, addAll, contains, containsAll, getInnerList, getRawValue, getType, 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

TermIntList

public TermIntList()

TermIntList

public TermIntList(int capacity,
                   String formatString)

TermIntList

public TermIntList(String formatString)
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<Integer>

buildPrimitiveList

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

clear

public void clear()
Specified by:
clear in interface Collection<String>
Specified by:
clear in interface List<String>
Overrides:
clear in class TermValueList<Integer>

get

public String get(int index)
Specified by:
get in interface List<String>
Overrides:
get in class TermValueList<Integer>

getPrimitiveValue

public int getPrimitiveValue(int index)

indexOf

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

indexOf

public int indexOf(Integer value)

indexOf

public int indexOf(int val)

indexOfWithOffset

public int indexOfWithOffset(Object value,
                             int offset)
Overrides:
indexOfWithOffset in class TermValueList<Integer>

indexOfWithOffset

public int indexOfWithOffset(Integer value,
                             int offset)

indexOfWithOffset

public int indexOfWithOffset(int value,
                             int offset)

indexOfWithType

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

indexOfWithType

public int indexOfWithType(int val)

seal

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

parseString

protected Object parseString(String o)
Specified by:
parseString in class TermNumberList<Integer>

contains

public boolean contains(int val)

containsWithType

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

containsWithType

public boolean containsWithType(int val)


Copyright © 2011. All Rights Reserved.