java.lang.Object
com.genologics.ri.sample.Samples
- All Implemented Interfaces:
Batch<SampleLink>,PaginatedBatch<SampleLink>,Serializable,Iterable<SampleLink>
The representation for a list of sample 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 PageThe next page link for pagination.protected PageThe previous page link for pagination.protected List<SampleLink>The list of sample links. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetList()Gets the list of sample links for batch operations.Gets the next page link.Gets the previous page link.Gets the list of sample links.intgetSize()Gets the size of the sample links list.voidsetNextPage(Page nextPage) Sets the next page link.voidsetPreviousPage(Page previousPage) Sets the previous page link.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
-
samples
The list of sample links. -
previousPage
The previous page link for pagination. -
nextPage
The next page link for pagination.
-
-
Constructor Details
-
Samples
public Samples()Constructor for an empty samples list.
-
-
Method Details
-
getSamples
Gets the list of sample links.This accessor method returns a reference to the live list, not a snapshot. Any modification to the returned list will be reflected in the object.
- Returns:
- The list of sample links.
-
getList
Gets the list of sample links for batch operations.- Specified by:
getListin interfaceBatch<SampleLink>- Returns:
- The list of sample links.
-
getSize
public int getSize()Gets the size of the sample links list.- Specified by:
getSizein interfaceBatch<SampleLink>- Returns:
- The number of sample links in the list.
-
getPreviousPage
Gets the previous page link.- Specified by:
getPreviousPagein interfacePaginatedBatch<SampleLink>- Returns:
- The previous page link.
-
setPreviousPage
Sets the previous page link.- Specified by:
setPreviousPagein interfacePaginatedBatch<SampleLink>- Parameters:
previousPage- The previous page link.
-
getNextPage
Gets the next page link.- Specified by:
getNextPagein interfacePaginatedBatch<SampleLink>- Returns:
- The next page link.
-
setNextPage
Sets the next page link.- Specified by:
setNextPagein interfacePaginatedBatch<SampleLink>- Parameters:
nextPage- The next page link.
-