com.browseengine.bobo.facets.data
Class TermLongList

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

public class TermLongList
extends TermNumberList<Long>


Field Summary
protected  long[] _elements
           
 
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
TermLongList()
           
TermLongList(int capacity, String formatString)
           
TermLongList(String formatString)
           
 
Method Summary
 boolean add(String o)
           
protected  List<?> buildPrimitiveList(int capacity)
           
 void clear()
           
 boolean contains(long val)
           
 boolean containsWithType(long val)
           
 boolean containsWithType(Long val)
           
 String get(int index)
           
 long getPrimitiveValue(int index)
           
 int indexOf(long val)
           
 int indexOf(Long val)
           
 int indexOf(Object o)
           
 int indexOfWithType(long val)
           
 int indexOfWithType(Long val)
           
protected  long parse(String s)
           
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
 

Field Detail

_elements

protected long[] _elements
Constructor Detail

TermLongList

public TermLongList()

TermLongList

public TermLongList(int capacity,
                    String formatString)

TermLongList

public TermLongList(String formatString)
Method Detail

parse

protected long parse(String s)

add

public boolean add(String o)
Specified by:
add in interface Collection<String>
Specified by:
add in interface List<String>
Specified by:
add in class TermValueList<Long>

buildPrimitiveList

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

clear

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

get

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

getPrimitiveValue

public long getPrimitiveValue(int index)

indexOf

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

indexOf

public int indexOf(Long val)

indexOf

public int indexOf(long val)

indexOfWithType

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

indexOfWithType

public int indexOfWithType(long val)

seal

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

parseString

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

contains

public boolean contains(long val)

containsWithType

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

containsWithType

public boolean containsWithType(long val)


Copyright © 2011. All Rights Reserved.