Class ListWithThumbnails<T,​S>

Object
org.anchoranalysis.plugin.image.feature.object.ListWithThumbnails<T,​S>
Type Parameters:
T - list-type
S - thumbnail input type

public class ListWithThumbnails<T,​S>
extends Object
A list of items with an associated thumbnail-batch.
Author:
Owen Feehan
  • Constructor Details

    • ListWithThumbnails

      public ListWithThumbnails​(List<T> list)
      Creates a new instance without a thumbnail batch.
      Parameters:
      list - the list of items
    • ListWithThumbnails

      public ListWithThumbnails​(List<T> list, ThumbnailBatch<S> thumbnailBatch)
      Creates a new instance with a thumbnail batch.
      Parameters:
      list - the list of items
      thumbnailBatch - the ThumbnailBatch associated with the list
  • Method Details

    • get

      public T get​(int arg0)
      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

      public Optional<ThumbnailBatch<S>> getThumbnailBatch()
      The optional thumbnail batch associated with the list.