Module java.base

Interface GroupLayout

All Superinterfaces:
MemoryLayoutPREVIEW
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 aggregates multiple 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 said to be a struct layout (see MemoryLayout.structLayout(MemoryLayout...)PREVIEW); conversely, if all member layouts are laid out at the same starting offset, the resulting group layout is said to be a union layout (see MemoryLayout.unionLayout(MemoryLayout...)PREVIEW).
Implementation Requirements:
This class is immutable, thread-safe and value-based.
Since:
19