ComponentGroup - corda

corda / net.corda.core.transactions / ComponentGroup

# ComponentGroup

`open 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.

### Constructors

#### <init> | 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. `ComponentGroup(groupIndex: Int, components: List<OpaqueBytes>)`

### Properties

#### components | `open val components: List<OpaqueBytes>`
#### groupIndex | `open val groupIndex: Int`

### Inheritors

#### FilteredComponentGroup | A FilteredComponentGroup is used to store the filtered list of transaction components of the same type in serialised form. This is similar to ComponentGroup, but it also includes the corresponding nonce per component. `data class FilteredComponentGroup : ComponentGroup`