ComponentGroup
Keywords: net.corda.core.transactions.ComponentGroup class
Date: 2023-09-18

net.corda.core.transactions

## Class ComponentGroup

- net.corda.core.transactions.ComponentGroup

- Direct Known Subclasses:
    FilteredComponentGroup

      public class ComponentGroup

  A ComponentGroup is used to store the full list of transaction components of the same type in serialised form. Practically, a group per component type of a transaction is required; thus, there will be a group for input states, a group for all attachments (if there are any) etc.

- - ### Constructor Detail

    - #### ComponentGroup

          public ComponentGroup(int groupIndex,
                                @NotNull
                                java.util.List<? extends net.corda.core.utilities.OpaqueBytes> components)

      A ComponentGroup is used to store the full list of transaction components of the same type in serialised form. Practically, a group per component type of a transaction is required; thus, there will be a group for input states, a group for all attachments (if there are any) etc.

  - ### Method Detail

    - #### getGroupIndex

          public int getGroupIndex()

    - #### getComponents

          @NotNull
          public java.util.List<net.corda.core.utilities.OpaqueBytes> getComponents()