Package com.contentful.java.cma.model
Class CMAArray<T extends CMAResource>
- java.lang.Object
-
- com.contentful.java.cma.model.CMAResource
-
- com.contentful.java.cma.model.CMAArray<T>
-
public class CMAArray<T extends CMAResource> extends CMAResource
Represents a collection of CMA resources.
-
-
Constructor Summary
Constructors Constructor Description CMAArray()Create a new Asset, setting type and create a system.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>getIncludes()java.util.List<T>getItems()intgetLimit()CMAPagesgetPages()intgetSkip()intgetTotal()voidsetPages(CMAPages pages)java.lang.StringtoString()-
Methods inherited from class com.contentful.java.cma.model.CMAResource
getEnvironmentId, getId, getSpaceId, getSystem, getVersion, getVisibility, isArchived, isPublished, setEnvironmentId, setId, setSpaceId, setSystem, setVersion, setVisibility
-
-
-
-
Method Detail
-
getItems
public java.util.List<T> getItems()
- Returns:
- the list of resources for this array.
-
getTotal
public int getTotal()
- Returns:
- the total number of resources contained within this array.
-
getSkip
public int getSkip()
- Returns:
- the
skipattribute for this array.
-
getLimit
public int getLimit()
- Returns:
- the
limitattribute for this array.
-
getIncludes
public java.util.Map<java.lang.String,java.lang.Object> getIncludes()
- Returns:
- a map of included resources.
-
getPages
public CMAPages getPages()
-
setPages
public void setPages(CMAPages pages)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classCMAResource- Returns:
- a human readable string, representing the object.
-
-