org.mtzky.lucene
クラス LuceneIndexSearcherResponse<E>

java.lang.Object
  上位を拡張 org.mtzky.lucene.LuceneIndexSearcherResponse<E>
型パラメータ:
E - entity
すべての実装されたインタフェース:
Serializable, Iterable<E>, Collection<E>, List<E>

public class LuceneIndexSearcherResponse<E>
extends Object
implements List<E>, Serializable

The response for LuceneIndexSearcher.find(LuceneIndexSearcherRequest) .

作成者:
mtzky
関連項目:
直列化された形式

コンストラクタの概要
LuceneIndexSearcherResponse()
           Constructs an empty list with an initial capacity of LuceneIndexSearcherRequest.DEFAULT_LIMIT.
LuceneIndexSearcherResponse(int initialCapacity)
           Constructs an empty list with the specified initial capacity.
 
メソッドの概要
 boolean add(E e)
           
 void add(int index, E element)
           
 boolean addAll(Collection<? extends E> c)
           
 boolean addAll(int index, Collection<? extends E> c)
           
 void clear()
           
 boolean contains(Object o)
           
 boolean containsAll(Collection<?> c)
           
 boolean equals(Object obj)
           
 E get(int index)
           
 int getCurrentPageIndex()
           Returns a current page index (zero-origin).
 int getCurrentPageNumber()
           Returns a current page number (one-origin).
 boolean getHasNextPage()
           Accessor to hasNextPage() for the EL Expression.
 boolean getHasPrevPage()
           Accessor to hasPrevPage() for the EL Expression.
 int getLimit()
           
 int getOffset()
           
 int getTotalHits()
           
 int hashCode()
           
 boolean hasNextPage()
           Returns true if has next page.
 boolean hasPrevPage()
           Returns true if has previous page.
 int indexOf(Object o)
           
 boolean isEmpty()
           
 Iterator<E> iterator()
           
 int lastIndexOf(Object o)
           
 ListIterator<E> listIterator()
           
 ListIterator<E> listIterator(int index)
           
 E remove(int index)
           
 boolean remove(Object o)
           
 boolean removeAll(Collection<?> c)
           
 boolean retainAll(Collection<?> c)
           
 E set(int index, E element)
           
 void setLimit(int limit)
           
 void setOffset(int offset)
           
 void setTotalHits(int totalHits)
           
 int size()
           
 List<E> subList(int fromIndex, int toIndex)
           
 Object[] toArray()
           
<T> T[]
toArray(T[] a)
           
 String toString()
           
 
クラス java.lang.Object から継承されたメソッド
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

LuceneIndexSearcherResponse

public LuceneIndexSearcherResponse()

Constructs an empty list with an initial capacity of LuceneIndexSearcherRequest.DEFAULT_LIMIT.


LuceneIndexSearcherResponse

public LuceneIndexSearcherResponse(int initialCapacity)

Constructs an empty list with the specified initial capacity.

パラメータ:
initialCapacity - the initial capacity of the list
例外:
IllegalArgumentException - if the specified initial capacity is negative
メソッドの詳細

getCurrentPageIndex

public int getCurrentPageIndex()

Returns a current page index (zero-origin). The result is incremented if the offset can't be divided evenly by the limit.

戻り値:
a current page index (zero-origin)
関連項目:
getCurrentPageNumber()

getCurrentPageNumber

public int getCurrentPageNumber()

Returns a current page number (one-origin). The result is incremented if the offset can't be divided evenly by the limit.

戻り値:
a current page number (one-origin)
関連項目:
getCurrentPageIndex()

hasPrevPage

public boolean hasPrevPage()

Returns true if has previous page.

戻り値:
true if has previous page

hasNextPage

public boolean hasNextPage()

Returns true if has next page.

戻り値:
true if has next page

getHasPrevPage

public boolean getHasPrevPage()

Accessor to hasPrevPage() for the EL Expression.

戻り値:
hasPrevPage()

getHasNextPage

public boolean getHasNextPage()

Accessor to hasNextPage() for the EL Expression.

戻り値:
hasNextPage()

hashCode

public int hashCode()
定義:
インタフェース Collection<E> 内の hashCode
定義:
インタフェース List<E> 内の hashCode
オーバーライド:
クラス Object 内の hashCode

equals

public boolean equals(Object obj)
定義:
インタフェース Collection<E> 内の equals
定義:
インタフェース List<E> 内の equals
オーバーライド:
クラス Object 内の equals

toString

public String toString()
オーバーライド:
クラス Object 内の toString

getLimit

public int getLimit()
戻り値:
limit

setLimit

public void setLimit(int limit)
パラメータ:
limit -

getOffset

public int getOffset()
戻り値:
offset

setOffset

public void setOffset(int offset)
パラメータ:
offset -

getTotalHits

public int getTotalHits()
戻り値:
totalHits

setTotalHits

public void setTotalHits(int totalHits)
パラメータ:
totalHits -

add

public boolean add(E e)
定義:
インタフェース Collection<E> 内の add
定義:
インタフェース List<E> 内の add

add

public void add(int index,
                E element)
定義:
インタフェース List<E> 内の add

addAll

public boolean addAll(Collection<? extends E> c)
定義:
インタフェース Collection<E> 内の addAll
定義:
インタフェース List<E> 内の addAll

addAll

public boolean addAll(int index,
                      Collection<? extends E> c)
定義:
インタフェース List<E> 内の addAll

clear

public void clear()
定義:
インタフェース Collection<E> 内の clear
定義:
インタフェース List<E> 内の clear

contains

public boolean contains(Object o)
定義:
インタフェース Collection<E> 内の contains
定義:
インタフェース List<E> 内の contains

containsAll

public boolean containsAll(Collection<?> c)
定義:
インタフェース Collection<E> 内の containsAll
定義:
インタフェース List<E> 内の containsAll

get

public E get(int index)
定義:
インタフェース List<E> 内の get

indexOf

public int indexOf(Object o)
定義:
インタフェース List<E> 内の indexOf

isEmpty

public boolean isEmpty()
定義:
インタフェース Collection<E> 内の isEmpty
定義:
インタフェース List<E> 内の isEmpty

iterator

public Iterator<E> iterator()
定義:
インタフェース Iterable<E> 内の iterator
定義:
インタフェース Collection<E> 内の iterator
定義:
インタフェース List<E> 内の iterator

lastIndexOf

public int lastIndexOf(Object o)
定義:
インタフェース List<E> 内の lastIndexOf

listIterator

public ListIterator<E> listIterator()
定義:
インタフェース List<E> 内の listIterator

listIterator

public ListIterator<E> listIterator(int index)
定義:
インタフェース List<E> 内の listIterator

remove

public boolean remove(Object o)
定義:
インタフェース Collection<E> 内の remove
定義:
インタフェース List<E> 内の remove

remove

public E remove(int index)
定義:
インタフェース List<E> 内の remove

removeAll

public boolean removeAll(Collection<?> c)
定義:
インタフェース Collection<E> 内の removeAll
定義:
インタフェース List<E> 内の removeAll

retainAll

public boolean retainAll(Collection<?> c)
定義:
インタフェース Collection<E> 内の retainAll
定義:
インタフェース List<E> 内の retainAll

set

public E set(int index,
             E element)
定義:
インタフェース List<E> 内の set

size

public int size()
定義:
インタフェース Collection<E> 内の size
定義:
インタフェース List<E> 内の size

subList

public List<E> subList(int fromIndex,
                       int toIndex)
定義:
インタフェース List<E> 内の subList

toArray

public Object[] toArray()
定義:
インタフェース Collection<E> 内の toArray
定義:
インタフェース List<E> 内の toArray

toArray

public <T> T[] toArray(T[] a)
定義:
インタフェース Collection<E> 内の toArray
定義:
インタフェース List<E> 内の toArray


Copyright (C) 2010-2011 Mtzky. AllRights Reserved.