Interface Batch<L>

Type Parameters:
L - The type of linkable object.
All Superinterfaces:
Iterable<L>
All Known Subinterfaces:
BatchUpdate<E>, PaginatedBatch<L>
All Known Implementing Classes:
ArtifactBatchFetchResult, ArtifactGroups, Artifacts, Automations, ClarityFileBatchFetchResult, ClarityFiles, ClarityProcesses, ContainerBatchFetchResult, Containers, ContainerTypes, ControlTypes, GlobalTokens, Index, Instruments, InstrumentTypes, Labs, Links, Permissions, ProcessTemplates, ProcessTypes, Projects, Properties, Protocols, Queue, ReagentKits, ReagentLots, ReagentTypes, Researchers, Roles, SampleBatchFetchResult, Samples, SavedQueries, Type, Udfs, Udts, Versions, Workflows

public interface Batch<L> extends Iterable<L>
Interface for objects that hold batches of linkable items (links or entities).
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the list of items in this batch.
    default int
    Gets the number of items in this batch.
    default boolean
    Checks if this batch is empty.
    default Iterator<L>
    Returns an iterator over the items in this batch.

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator
  • Method Details

    • getList

      List<L> getList()
      Gets the list of items in this batch.
      Returns:
      The list of items.
    • getSize

      default int getSize()
      Gets the number of items in this batch.
      Returns:
      The size of the batch.
    • isEmpty

      default boolean isEmpty()
      Checks if this batch is empty.
      Returns:
      true if the batch contains no items, false otherwise.
    • iterator

      default Iterator<L> iterator()
      Returns an iterator over the items in this batch.
      Specified by:
      iterator in interface Iterable<L>
      Returns:
      An iterator.