Class VulkanSpecializationMap
java.lang.Object
com.io7m.jcoronado.api.VulkanSpecializationMap
-
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.static VulkanSpecializationMapof(Iterable<? extends VulkanSpecializationMapEntry> entries, ByteBuffer data) Construct a new immutableVulkanSpecializationMapinstance.static VulkanSpecializationMapof(List<VulkanSpecializationMapEntry> entries, ByteBuffer data) Construct a new immutableVulkanSpecializationMapinstance.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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.io7m.jcoronado.api.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 of
thisobject
-
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 of the
thisobject
-
equals
-
hashCode
-
toString
-
of
public static VulkanSpecializationMap of(List<VulkanSpecializationMapEntry> entries, ByteBuffer data) Construct a new immutableVulkanSpecializationMapinstance.- Parameters:
entries- The value for theentriesattributedata- The value for thedataattribute- Returns:
- An immutable VulkanSpecializationMap instance
-
of
public static VulkanSpecializationMap of(Iterable<? extends VulkanSpecializationMapEntry> entries, ByteBuffer data) Construct a new immutableVulkanSpecializationMapinstance.- Parameters:
entries- The value for theentriesattributedata- The value for thedataattribute- Returns:
- An immutable VulkanSpecializationMap instance
-
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
-