-
- All Implemented Interfaces:
-
java.io.Serializable
,java.lang.Cloneable
,java.lang.Iterable
,java.util.Collection
,java.util.List
,java.util.RandomAccess
public class MenigaTransactionPage extends ArrayList<MenigaTransaction> implements Serializable
Copyright 2017 Meniga Iceland Inc. A list of transaction that includes the total number of transactions available given the criteria used to generate the list.
-
-
Field Summary
Fields Modifier and Type Field Description protected int
totalNumTransactions
protected int
numPages
protected int
page
protected int
numItemsPerPage
-
Method Summary
Modifier and Type Method Description int
getTotalNumTransactions()
int
getNumPages()
int
getPage()
int
getNumItemsPerPage()
void
setTotalNumTransactions(int num)
Sets the total number of transactions that match the criteria (filter) that was used to generate this transaction page void
setPage(int page)
Sets the page this result is on. void
setNumItemsPerPage(int numItemsPerPage)
Sets the number of items per page. -
Methods inherited from class java.util.ArrayList
add, add, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
Methods inherited from class java.util.AbstractList
equals, hashCode
-
Methods inherited from class java.util.AbstractCollection
containsAll, toString
-
Methods inherited from class java.util.Collection
parallelStream, stream
-
Methods inherited from class java.lang.Iterable
iterator, spliterator
-
Methods inherited from class java.util.List
of
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getTotalNumTransactions
int getTotalNumTransactions()
-
getNumPages
int getNumPages()
-
getPage
int getPage()
-
getNumItemsPerPage
int getNumItemsPerPage()
-
setTotalNumTransactions
void setTotalNumTransactions(int num)
Sets the total number of transactions that match the criteria (filter) that was used to generate this transaction page
- Parameters:
num
- The total number of transactions of the query
-
setPage
void setPage(int page)
Sets the page this result is on.
- Parameters:
page
- The page we are on in the paginated result set
-
setNumItemsPerPage
void setNumItemsPerPage(int numItemsPerPage)
Sets the number of items per page. Used for paginating the results. The query may apply to many more transactions than will be contained in thepage (use getTotalNumTransactions to get that number).
- Parameters:
numItemsPerPage
- The number of transactions per page
-
-
-
-