Class VulkanLayerProperties
java.lang.Object
com.io7m.jcoronado.api.VulkanLayerProperties
- All Implemented Interfaces:
VulkanLayerPropertiesType
A description of a layer.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeVulkanLayerProperties. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forVulkanLayerProperties.static VulkanLayerPropertiescopyOf(VulkanLayerPropertiesType instance) Creates an immutable copy of aVulkanLayerPropertiesTypevalue.booleanThis instance is equal to all instances ofVulkanLayerPropertiesthat have equal attribute values.inthashCode()Computes a hash code from attributes:name,description,specificationVersion,implementationVersion.intname()inttoString()Prints the immutable valueVulkanLayerPropertieswith attribute values.final VulkanLayerPropertieswithDescription(String value) Copy the current immutable object by setting a value for thedescriptionattribute.final VulkanLayerPropertieswithImplementationVersion(int value) Copy the current immutable object by setting a value for theimplementationVersionattribute.final VulkanLayerPropertiesCopy the current immutable object by setting a value for thenameattribute.final VulkanLayerPropertieswithSpecificationVersion(int value) Copy the current immutable object by setting a value for thespecificationVersionattribute.
-
Method Details
-
name
- Specified by:
namein interfaceVulkanLayerPropertiesType- Returns:
- The name of the layer
-
description
- Specified by:
descriptionin interfaceVulkanLayerPropertiesType- Returns:
- A humanly-readable description of the layer
-
specificationVersion
public int specificationVersion()- Specified by:
specificationVersionin interfaceVulkanLayerPropertiesType- Returns:
- The version of the specification defining this layer
-
implementationVersion
public int implementationVersion()- Specified by:
implementationVersionin interfaceVulkanLayerPropertiesType- Returns:
- The version of the layer implementation
-
withName
Copy the current immutable object by setting a value for thenameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for name- Returns:
- A modified copy or the
thisobject
-
withDescription
Copy the current immutable object by setting a value for thedescriptionattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for description- Returns:
- A modified copy or the
thisobject
-
withSpecificationVersion
Copy the current immutable object by setting a value for thespecificationVersionattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for specificationVersion- Returns:
- A modified copy or the
thisobject
-
withImplementationVersion
Copy the current immutable object by setting a value for theimplementationVersionattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for implementationVersion- Returns:
- A modified copy or the
thisobject
-
equals
-
hashCode
-
toString
-
copyOf
Creates an immutable copy of aVulkanLayerPropertiesTypevalue. 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 VulkanLayerProperties instance
-
builder
Creates a builder forVulkanLayerProperties.VulkanLayerProperties.builder() .setName(String) // required
name.setDescription(String) // requireddescription.setSpecificationVersion(int) // optionalspecificationVersion.setImplementationVersion(int) // optionalimplementationVersion.build();- Returns:
- A new VulkanLayerProperties builder
-