@Generated(value={"Immutables.generator","R2ImageBufferDescriptionType"}) public final class R2ImageBufferDescription extends Object implements R2ImageBufferDescriptionType
Modifier and Type | Class and Description |
---|---|
static class |
R2ImageBufferDescription.Builder
Builds instances of type
R2ImageBufferDescription . |
Modifier and Type | Method and Description |
---|---|
com.io7m.jregions.core.unparameterized.sizes.AreaSizeL |
area() |
static R2ImageBufferDescription.Builder |
builder()
Creates a builder for
R2ImageBufferDescription . |
static R2ImageBufferDescription |
copyOf(R2ImageBufferDescriptionType instance)
Creates an immutable copy of a
R2ImageBufferDescriptionType value. |
Optional<R2DepthAttachmentSpecificationType> |
depthAttachment()
A specification of whether a new depth attachment should be created,
a depth attachment should be shared with an existing framebuffer, or
no depth attachment should exist at all.
|
boolean |
equals(Object another)
This instance is equal to all instances of
R2ImageBufferDescription that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
area , depthAttachment . |
static R2ImageBufferDescription |
of(com.io7m.jregions.core.unparameterized.sizes.AreaSizeL area,
Optional<R2DepthAttachmentSpecificationType> depthAttachment)
Construct a new immutable
R2ImageBufferDescription instance. |
String |
toString()
Prints the immutable value
R2ImageBufferDescription with attribute values. |
R2ImageBufferDescription |
withArea(com.io7m.jregions.core.unparameterized.sizes.AreaSizeL value)
Copy the current immutable object by setting a value for the
area attribute. |
R2ImageBufferDescription |
withDepthAttachment(Optional<? extends R2DepthAttachmentSpecificationType> optional)
Copy the current immutable object by setting an optional value for the
depthAttachment attribute. |
R2ImageBufferDescription |
withDepthAttachment(R2DepthAttachmentSpecificationType value)
Copy the current immutable object by setting a present value for the optional
depthAttachment attribute. |
public com.io7m.jregions.core.unparameterized.sizes.AreaSizeL area()
area
in interface R2ImageBufferDescriptionType
area
in interface R2RenderTargetDescriptionType
area
attributepublic Optional<R2DepthAttachmentSpecificationType> depthAttachment()
depthAttachment
in interface R2ImageBufferDescriptionType
public final R2ImageBufferDescription withArea(com.io7m.jregions.core.unparameterized.sizes.AreaSizeL value)
area
attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this
.value
- A new value for areathis
objectpublic final R2ImageBufferDescription withDepthAttachment(R2DepthAttachmentSpecificationType value)
depthAttachment
attribute.value
- The value for depthAttachmentthis
objectpublic final R2ImageBufferDescription withDepthAttachment(Optional<? extends R2DepthAttachmentSpecificationType> optional)
depthAttachment
attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this
.optional
- A value for depthAttachmentthis
objectpublic boolean equals(Object another)
R2ImageBufferDescription
that have equal attribute values.public int hashCode()
area
, depthAttachment
.public String toString()
R2ImageBufferDescription
with attribute values.public static R2ImageBufferDescription of(com.io7m.jregions.core.unparameterized.sizes.AreaSizeL area, Optional<R2DepthAttachmentSpecificationType> depthAttachment)
R2ImageBufferDescription
instance.area
- The value for the area
attributedepthAttachment
- The value for the depthAttachment
attributepublic static R2ImageBufferDescription copyOf(R2ImageBufferDescriptionType instance)
R2ImageBufferDescriptionType
value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance
- The instance to copypublic static R2ImageBufferDescription.Builder builder()
R2ImageBufferDescription
.Copyright © 2017 <code@io7m.com> http://io7m.com