Class VulkanSpecializationMap
java.lang.Object
com.io7m.jcoronado.api.VulkanSpecializationMap
- All Implemented Interfaces:
VulkanSpecializationMapType
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanSpecializationMap. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forVulkanSpecializationMap.static VulkanSpecializationMapcopyOf(VulkanSpecializationMapType instance) Creates an immutable copy of aVulkanSpecializationMapTypevalue.data()entries()booleanThis instance is equal to all instances ofVulkanSpecializationMapthat have equal attribute values.inthashCode()Computes a hash code from attributes:entries,data.toString()Prints the immutable valueVulkanSpecializationMapwith attribute values.final VulkanSpecializationMapwithData(ByteBuffer value) Copy the current immutable object by setting a value for thedataattribute.final VulkanSpecializationMapwithEntries(VulkanSpecializationMapEntry... elements) Copy the current immutable object with elements that replace the content ofentries.final VulkanSpecializationMapwithEntries(Iterable<? extends VulkanSpecializationMapEntry> elements) Copy the current immutable object with elements that replace the content ofentries.Methods inherited from interface VulkanSpecializationMapType
checkPreconditions
-
Method Details
-
entries
- Specified by:
entriesin interfaceVulkanSpecializationMapType- Returns:
- A list of entries mapping constants to offsets in
data
-
data
- Specified by:
datain interfaceVulkanSpecializationMapType- Returns:
- The constant data
-
withEntries
Copy the current immutable object with elements that replace the content ofentries.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withEntries
public final VulkanSpecializationMap withEntries(Iterable<? extends VulkanSpecializationMapEntry> elements) Copy the current immutable object with elements that replace the content ofentries. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of entries elements to set- Returns:
- A modified copy or
thisif not changed
-
withData
Copy the current immutable object by setting a value for thedataattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for data- Returns:
- A modified copy or the
thisobject
-
equals
-
hashCode
-
toString
-
copyOf
Creates an immutable copy of aVulkanSpecializationMapTypevalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable VulkanSpecializationMap instance
-
builder
Creates a builder forVulkanSpecializationMap.VulkanSpecializationMap.builder() .addEntries|addAllEntries(VulkanSpecializationMapEntry) //
entrieselements .setData(java.nio.ByteBuffer) // requireddata.build();- Returns:
- A new VulkanSpecializationMap builder
-