Class IdentityResult
- java.lang.Object
-
- org.exoplatform.social.core.identity.IdentityResult
-
- All Implemented Interfaces:
Iterable<Identity>,Collection<Identity>
public class IdentityResult extends Object implements Collection<Identity>
-
-
Constructor Summary
Constructors Constructor Description IdentityResult(long totalSize)Constructor with total size for counterIdentityResult(long offset, long limit, long totalSize)Constructor with offset and limit
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(Identity e)booleanaddAll(Collection<? extends Identity> c)booleanaddMore()Add more element into List or notvoidclear()booleancontains(Object o)booleancontainsAll(Collection<?> c)longgetLimit()longgetOffset()booleanisEmpty()Iterator<Identity>iterator()booleanremove(Object o)booleanremoveAll(Collection<?> c)List<Identity>result()booleanretainAll(Collection<?> c)intsize()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, parallelStream, removeIf, spliterator, stream, toArray
-
-
-
-
Constructor Detail
-
IdentityResult
public IdentityResult(long offset, long limit, long totalSize)Constructor with offset and limit- Parameters:
offset-limit-totalSize- total size of nodes matched filter.
-
IdentityResult
public IdentityResult(long totalSize)
Constructor with total size for counter- Parameters:
totalSize- total size of nodes matched filter.
-
-
Method Detail
-
size
public int size()
- Specified by:
sizein interfaceCollection<Identity>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceCollection<Identity>
-
contains
public boolean contains(Object o)
- Specified by:
containsin interfaceCollection<Identity>
-
addMore
public boolean addMore()
Add more element into List or not- Returns:
-
getOffset
public long getOffset()
-
getLimit
public long getLimit()
-
toArray
public Object[] toArray()
- Specified by:
toArrayin interfaceCollection<Identity>
-
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArrayin interfaceCollection<Identity>
-
add
public boolean add(Identity e)
- Specified by:
addin interfaceCollection<Identity>
-
remove
public boolean remove(Object o)
- Specified by:
removein interfaceCollection<Identity>
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAllin interfaceCollection<Identity>
-
addAll
public boolean addAll(Collection<? extends Identity> c)
- Specified by:
addAllin interfaceCollection<Identity>
-
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAllin interfaceCollection<Identity>
-
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAllin interfaceCollection<Identity>
-
clear
public void clear()
- Specified by:
clearin interfaceCollection<Identity>
-
-