Module java.base

Interface GroupLayout

All Superinterfaces:
All Known Subinterfaces:
StructLayoutPREVIEW, UnionLayoutPREVIEW

public sealed interface GroupLayout extends MemoryLayoutPREVIEW permits StructLayoutPREVIEW, UnionLayoutPREVIEW
GroupLayout is a preview API of the Java platform.
Programs can only use GroupLayout when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
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 layoutPREVIEW; conversely, if all member layouts are laid out at the same starting offset, the resulting group layout is a union layoutPREVIEW.
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