java.lang.Object
com.genologics.ri.instrument.Instruments
- All Implemented Interfaces:
Batch<InstrumentLink>,PaginatedBatch<InstrumentLink>,Serializable,Iterable<InstrumentLink>
The representation of a list of instrument links.
The system enforces a maximum number of elements when generating the list of links. When the size of the request result set is larger than the system maximum, the list represents a paged view of the overall results, and the previous-page and next-page elements provide URIs linking to the previous or next page of links in the overall results.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<InstrumentLink>The list of instrument links.protected PageThe next page reference.protected PageThe previous page reference. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the list of instrument links.getList()Gets the list of items in this batch.Gets the next page of results.Gets the previous page of results.intgetSize()Gets the number of items in this batch.voidsetNextPage(Page nextPage) Sets the next page of results.voidsetPreviousPage(Page previousPage) Sets the previous page of results.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
instruments
The list of instrument links. -
previousPage
The previous page reference. -
nextPage
The next page reference.
-
-
Constructor Details
-
Instruments
public Instruments()Default constructor.
-
-
Method Details
-
getInstruments
Get the list of instrument links.- Returns:
- The list of instrument links.
-
getList
Gets the list of items in this batch.- Specified by:
getListin interfaceBatch<InstrumentLink>- Returns:
- The list of items.
-
getSize
public int getSize()Gets the number of items in this batch.- Specified by:
getSizein interfaceBatch<InstrumentLink>- Returns:
- The size of the batch.
-
getPreviousPage
Gets the previous page of results.- Specified by:
getPreviousPagein interfacePaginatedBatch<InstrumentLink>- Returns:
- The previous page, or null if there is no previous page.
-
setPreviousPage
Sets the previous page of results.- Specified by:
setPreviousPagein interfacePaginatedBatch<InstrumentLink>- Parameters:
previousPage- The previous page.
-
getNextPage
Gets the next page of results.- Specified by:
getNextPagein interfacePaginatedBatch<InstrumentLink>- Returns:
- The next page, or null if there is no next page.
-
setNextPage
Sets the next page of results.- Specified by:
setNextPagein interfacePaginatedBatch<InstrumentLink>- Parameters:
nextPage- The next page.
-