Record Class Mapping.Opaque
java.lang.Object
java.lang.Record
org.lwjgl.system.ffm.mapping.Mapping.Opaque
- All Implemented Interfaces:
Mapping<AddressLayout>
- Enclosing interface:
Mapping<L extends MemoryLayout>
public static record Mapping.Opaque(AddressLayout layout)
extends Record
implements Mapping<AddressLayout>
-
Nested Class Summary
Nested classes/interfaces inherited from interface Mapping
Mapping.Boolean, Mapping.Byte, Mapping.Char, Mapping.CLong, Mapping.Double, Mapping.Float, Mapping.Int, Mapping.Long, Mapping.Opaque, Mapping.Pointer, Mapping.Sequence, Mapping.Short, Mapping.Size, Mapping.Struct, Mapping.Union -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncconst()Creates a new instance of this mapping with the Cconstqualifierfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.layout()Returns the value of thelayoutrecord component.final StringtoString()Returns a string representation of this record class.Creates a new instance of this mapping with the specified type name.
-
Constructor Details
-
Opaque
Creates an instance of aOpaquerecord class.- Parameters:
layout- the value for thelayoutrecord component
-
-
Method Details
-
typedef
Description copied from interface:MappingCreates a new instance of this mapping with the specified type name.- Specified by:
typedefin interfaceMapping<AddressLayout>- Returns:
- the new mapping
-
cconst
Description copied from interface:MappingCreates a new instance of this mapping with the Cconstqualifier- Specified by:
cconstin interfaceMapping<AddressLayout>- Returns:
- the new mapping
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
layout
Returns the value of thelayoutrecord component.- Specified by:
layoutin interfaceMapping<AddressLayout>- Returns:
- the value of the
layoutrecord component
-