Class ListWithThumbnails<T,S>
Object
org.anchoranalysis.plugin.image.feature.object.ListWithThumbnails<T,S>
- Type Parameters:
T- list-typeS- thumbnail input type
public class ListWithThumbnails<T,S> extends Object
A list of items with an associated thumbnail-batch.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description ListWithThumbnails(List<T> list)Creates a new instance without a thumbnail batch.ListWithThumbnails(List<T> list, ThumbnailBatch<S> thumbnailBatch)Creates a new instance with a thumbnail batch. -
Method Summary
Modifier and Type Method Description Tget(int arg0)Gets the item at the specified index in the list.Optional<ThumbnailBatch<S>>getThumbnailBatch()The optional thumbnail batch associated with the list.intsize()Gets the size of the list.
-
Constructor Details
-
ListWithThumbnails
Creates a new instance without a thumbnail batch.- Parameters:
list- the list of items
-
ListWithThumbnails
Creates a new instance with a thumbnail batch.- Parameters:
list- the list of itemsthumbnailBatch- theThumbnailBatchassociated with the list
-
-
Method Details
-
get
Gets the item at the specified index in the list.- Parameters:
arg0- the index of the item to retrieve- Returns:
- the item at the specified index
-
size
public int size()Gets the size of the list.- Returns:
- the number of items in the list
-
getThumbnailBatch
The optional thumbnail batch associated with the list.
-