org.exoplatform.faq.service.search
Class AnswerSearchResult
java.lang.Object
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnswerSearchResult
public AnswerSearchResult(long offset,
long limit,
long totalSize)
- Constructor with offset and limit
- Parameters:
offset - limit - totalSize - total size of nodes matched filter.
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.