Class StashPageEntity<T>
- java.lang.Object
-
- com.atlassian.bamboo.plugins.stash.rest.entity.StashPageEntity<T>
-
public class StashPageEntity<T> extends Object
-
-
Constructor Summary
Constructors Constructor Description StashPageEntity(int size, int limit, boolean lastPage, int start, @Nullable Integer nextPageStart, Iterable<T> values)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <F,T>
com.google.common.base.Function<com.atlassian.stash.rest.client.api.entity.Page<F>,StashPageEntity<T>>fromPageWithTransform(com.google.common.base.Function<F,T> transform)
int
getLimit()
@Nullable Integer
getNextPageStart()
int
getSize()
int
getStart()
Iterable<T>
getValues()
boolean
isLastPage()
void
setValues(Iterable<T> values)
static <T> StashPageEntity<T>
singlePage(Iterable<T> values)
-
-
-
Method Detail
-
fromPageWithTransform
public static final <F,T> com.google.common.base.Function<com.atlassian.stash.rest.client.api.entity.Page<F>,StashPageEntity<T>> fromPageWithTransform(com.google.common.base.Function<F,T> transform)
-
singlePage
public static <T> StashPageEntity<T> singlePage(Iterable<T> values)
-
getSize
public int getSize()
-
getLimit
public int getLimit()
-
isLastPage
public boolean isLastPage()
-
getStart
public int getStart()
-
getNextPageStart
@Nullable public @Nullable Integer getNextPageStart()
-
-