org.exoplatform.faq.service.search
Class AnswerSearchResult

java.lang.Object
  extended by org.exoplatform.faq.service.search.AnswerSearchResult
All Implemented Interfaces:
Iterable<ObjectSearchResult>, Collection<ObjectSearchResult>

public class AnswerSearchResult
extends Object
implements Collection<ObjectSearchResult>


Constructor Summary
AnswerSearchResult(long offset, long limit, long totalSize)
          Constructor with offset and limit
 
Method Summary
 boolean add(ObjectSearchResult e)
           
 boolean addAll(Collection<? extends ObjectSearchResult> c)
           
 boolean addMore()
          Add more element into List or not
 void clear()
           
 boolean contains(Object o)
           
 boolean contains(String id)
          Checks the id whether is existing or not in result list.
 boolean containsAll(Collection<?> c)
           
 long getLimit()
           
 long getOffset()
           
 boolean isEmpty()
           
 Iterator<ObjectSearchResult> iterator()
           
 boolean remove(Object o)
           
 boolean removeAll(Collection<?> c)
           
 List<ObjectSearchResult> result()
           
 boolean retainAll(Collection<?> c)
           
 int size()
           
 Object[] toArray()
           
<T> T[]
toArray(T[] a)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Collection
equals, hashCode
 

Constructor Detail

AnswerSearchResult

public AnswerSearchResult(long offset,
                          long limit,
                          long totalSize)
Constructor with offset and limit

Parameters:
offset -
limit -
totalSize - total size of nodes matched filter.
Method Detail

size

public int size()
Specified by:
size in interface Collection<ObjectSearchResult>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection<ObjectSearchResult>

contains

public boolean contains(Object o)
Specified by:
contains in interface Collection<ObjectSearchResult>

contains

public boolean contains(String id)
Checks the id whether is existing or not in result list.

Parameters:
id - specified id
Returns:
TRUE: existing otherwise FALSE

addMore

public boolean addMore()
Add more element into List or not

Returns:

getOffset

public long getOffset()

getLimit

public long getLimit()

iterator

public Iterator<ObjectSearchResult> iterator()
Specified by:
iterator in interface Iterable<ObjectSearchResult>
Specified by:
iterator in interface Collection<ObjectSearchResult>

toArray

public Object[] toArray()
Specified by:
toArray in interface Collection<ObjectSearchResult>

toArray

public <T> T[] toArray(T[] a)
Specified by:
toArray in interface Collection<ObjectSearchResult>

add

public boolean add(ObjectSearchResult e)
Specified by:
add in interface Collection<ObjectSearchResult>

result

public List<ObjectSearchResult> result()

remove

public boolean remove(Object o)
Specified by:
remove in interface Collection<ObjectSearchResult>

containsAll

public boolean containsAll(Collection<?> c)
Specified by:
containsAll in interface Collection<ObjectSearchResult>

addAll

public boolean addAll(Collection<? extends ObjectSearchResult> c)
Specified by:
addAll in interface Collection<ObjectSearchResult>

removeAll

public boolean removeAll(Collection<?> c)
Specified by:
removeAll in interface Collection<ObjectSearchResult>

retainAll

public boolean retainAll(Collection<?> c)
Specified by:
retainAll in interface Collection<ObjectSearchResult>

clear

public void clear()
Specified by:
clear in interface Collection<ObjectSearchResult>


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.