Module java.base

Interface GroupLayout

All Superinterfaces:
MemoryLayout
All Known Subinterfaces:
StructLayout, UnionLayout

public sealed interface GroupLayout extends MemoryLayout permits StructLayout, UnionLayout
A compound layout that is an aggregation of multiple, heterogeneous member layouts. There are two ways in which member layouts can be combined: if member layouts are laid out one after the other, the resulting group layout is a struct layout; conversely, if all member layouts are laid out at the same starting offset, the resulting group layout is a union layout.
Implementation Requirements:
This class is immutable, thread-safe and value-based.
Sealed Class Hierarchy Graph:
Sealed class hierarchy graph for GroupLayoutSealed class hierarchy graph for GroupLayout
Since:
22