Class FFM.UnionBinderBuilder<T>
java.lang.Object
org.lwjgl.system.ffm.FFM.GroupBinderBuilder<T, UnionLayout, UnionBinder<T>, FFM.UnionBinderBuilder<T>>
org.lwjgl.system.ffm.FFM.UnionBinderBuilder<T>
- Enclosing class:
FFM
public static final class FFM.UnionBinderBuilder<T>
extends FFM.GroupBinderBuilder<T, UnionLayout, UnionBinder<T>, FFM.UnionBinderBuilder<T>>
A builder for
UnionBinder instances.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Generates a class that implements theUnionBinderinterface for the union type using the current builder state, then returns a new instance of that class.m(String name, MemoryLayout layout) Adds a new member to this group.Methods inherited from class FFM.GroupBinderBuilder
alignas, automaticPadding, checkPadding, m, pack, padding, withEquals, withHashCode, withToString
-
Method Details
-
m
Description copied from class:FFM.GroupBinderBuilderAdds a new member to this group.- Overrides:
min classFFM.GroupBinderBuilder<T, UnionLayout, UnionBinder<T>, FFM.UnionBinderBuilder<T>>- Parameters:
name- the member namelayout- the member's memory layout- Returns:
- this builder instance
-
build
Generates a class that implements theUnionBinderinterface for the union type using the current builder state, then returns a new instance of that class.- Overrides:
buildin classFFM.GroupBinderBuilder<T, UnionLayout, UnionBinder<T>, FFM.UnionBinderBuilder<T>>- Returns:
- the
UnionBinderimplementation
-