com.foxinmy.weixin4j.model.paging
Class Pagedata<T>

java.lang.Object
  extended by com.foxinmy.weixin4j.model.paging.Pagedata<T>
All Implemented Interfaces:
Serializable, Iterable<T>

public class Pagedata<T>
extends Object
implements Serializable, Iterable<T>

See Also:
Serialized Form

Constructor Summary
Pagedata(Pageable pageable, int total, List<T> content)
           
 
Method Summary
 List<T> getContent()
           
 int getNumber()
           
 int getNumberOfElements()
           
 int getSize()
           
 Sort getSort()
           
 int getTotalElements()
           
 int getTotalPages()
           
 boolean hasContent()
           
 boolean hasNext()
           
 boolean hasPrevious()
           
 Iterator<T> iterator()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Pagedata

public Pagedata(Pageable pageable,
                int total,
                List<T> content)
Method Detail

getNumber

public int getNumber()

getSize

public int getSize()

getTotalPages

public int getTotalPages()

getTotalElements

public int getTotalElements()

getNumberOfElements

public int getNumberOfElements()

hasContent

public boolean hasContent()

hasPrevious

public boolean hasPrevious()

hasNext

public boolean hasNext()

getSort

public Sort getSort()

getContent

public List<T> getContent()

iterator

public Iterator<T> iterator()
Specified by:
iterator in interface Iterable<T>

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014–2017. All rights reserved.