com.browseengine.bobo.facets.data
Class TermFloatList

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

public class TermFloatList
extends TermNumberList<Float>


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
TermFloatList()
           
TermFloatList(int capacity, String formatString)
           
TermFloatList(String formatString)
           
 
Method Summary
 boolean add(String o)
          Add a new value to the list.
protected  List<?> buildPrimitiveList(int capacity)
           
 boolean contains(float val)
           
 boolean containsWithType(float val)
           
 boolean containsWithType(Float val)
           
 String get(int index)
           
 float getPrimitiveValue(int index)
           
 int indexOf(float o)
           
 int indexOf(Object o)
           
 int indexOfWithType(float o)
           
 int indexOfWithType(Float o)
           
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, clear, contains, containsAll, 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

TermFloatList

public TermFloatList()

TermFloatList

public TermFloatList(String formatString)

TermFloatList

public TermFloatList(int capacity,
                     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<Float>

buildPrimitiveList

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

get

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

getPrimitiveValue

public float getPrimitiveValue(int index)

indexOf

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

indexOf

public int indexOf(float o)

seal

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

parseString

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

contains

public boolean contains(float val)

containsWithType

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

containsWithType

public boolean containsWithType(float val)

indexOfWithType

public int indexOfWithType(Float o)
Specified by:
indexOfWithType in class TermValueList<Float>

indexOfWithType

public int indexOfWithType(float o)


Copyright © 2011. All Rights Reserved.