com.browseengine.bobo.facets.data
Class TermNumberList<T extends Number>

java.lang.Object
  extended by com.browseengine.bobo.facets.data.TermValueList<T>
      extended by com.browseengine.bobo.facets.data.TermNumberList<T>
All Implemented Interfaces:
Iterable<String>, Collection<String>, List<String>
Direct Known Subclasses:
TermDoubleList, TermFloatList, TermIntList, TermLongList, TermShortList

public abstract class TermNumberList<T extends Number>
extends TermValueList<T>


Field Summary
protected  String _formatString
           
protected  ThreadLocal<DecimalFormat> _formatter
           
 
Fields inherited from class com.browseengine.bobo.facets.data.TermValueList
_innerList, _type
 
Constructor Summary
protected TermNumberList()
           
protected TermNumberList(int capacity, String formatString)
           
protected TermNumberList(String formatString)
           
 
Method Summary
 String format(Object o)
           
 String getFormatString()
           
protected abstract  Object parseString(String o)
           
protected  void setFormatString(String formatString)
           
 
Methods inherited from class com.browseengine.bobo.facets.data.TermValueList
add, add, addAll, addAll, buildPrimitiveList, clear, contains, containsAll, containsWithType, get, getInnerList, getRawValue, getType, indexOf, indexOfWithType, isEmpty, iterator, lastIndexOf, listIterator, listIterator, main, remove, remove, removeAll, retainAll, seal, 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
 

Field Detail

_formatter

protected ThreadLocal<DecimalFormat> _formatter

_formatString

protected String _formatString
Constructor Detail

TermNumberList

protected TermNumberList()

TermNumberList

protected TermNumberList(String formatString)

TermNumberList

protected TermNumberList(int capacity,
                         String formatString)
Method Detail

setFormatString

protected void setFormatString(String formatString)

getFormatString

public String getFormatString()

parseString

protected abstract Object parseString(String o)

format

public String format(Object o)
Specified by:
format in class TermValueList<T extends Number>


Copyright © 2011. All Rights Reserved.