Class CollectionEntity
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<String,Object>
-
- org.exoplatform.social.rest.entity.CollectionEntity
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>
public class CollectionEntity extends LinkedHashMap<String,Object>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description CollectionEntity(List<? extends DataEntity> entities, String key, int offset, int limit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CollectionEntityextractInfo(List<String> returnedProperties)List<? extends DataEntity>getEntities()intgetLimit()intgetOffset()intgetSize()voidsetLimit(int limit)voidsetOffset(int offset)voidsetSize(int size)org.json.JSONObjecttoJSONObject()StringtoString()-
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
Methods inherited from class java.util.AbstractMap
equals, hashCode
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
-
-
-
Constructor Detail
-
CollectionEntity
public CollectionEntity(List<? extends DataEntity> entities, String key, int offset, int limit)
-
-
Method Detail
-
getSize
public int getSize()
-
setSize
public void setSize(int size)
-
getLimit
public int getLimit()
-
setLimit
public void setLimit(int limit)
-
getOffset
public int getOffset()
-
setOffset
public void setOffset(int offset)
-
getEntities
public List<? extends DataEntity> getEntities()
-
extractInfo
public CollectionEntity extractInfo(List<String> returnedProperties)
-
toString
public String toString()
- Overrides:
toStringin classAbstractMap<String,Object>
-
toJSONObject
public org.json.JSONObject toJSONObject()
-
-