@Generated(value={"Immutables.generator","R2MaskBufferDescriptionType"}) public final class R2MaskBufferDescription extends Object implements R2MaskBufferDescriptionType
Modifier and Type | Class and Description |
---|---|
static class |
R2MaskBufferDescription.Builder
Builds instances of type
R2MaskBufferDescription . |
Modifier and Type | Method and Description |
---|---|
com.io7m.jregions.core.unparameterized.sizes.AreaSizeL |
area() |
static R2MaskBufferDescription.Builder |
builder()
Creates a builder for
R2MaskBufferDescription . |
static R2MaskBufferDescription |
copyOf(R2MaskBufferDescriptionType instance)
Creates an immutable copy of a
R2MaskBufferDescriptionType 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
R2MaskBufferDescription that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
area , depthAttachment . |
static R2MaskBufferDescription |
of(com.io7m.jregions.core.unparameterized.sizes.AreaSizeL area,
Optional<R2DepthAttachmentSpecificationType> depthAttachment)
Construct a new immutable
R2MaskBufferDescription instance. |
String |
toString()
Prints the immutable value
R2MaskBufferDescription with attribute values. |
R2MaskBufferDescription |
withArea(com.io7m.jregions.core.unparameterized.sizes.AreaSizeL value)
Copy the current immutable object by setting a value for the
area attribute. |
R2MaskBufferDescription |
withDepthAttachment(Optional<? extends R2DepthAttachmentSpecificationType> optional)
Copy the current immutable object by setting an optional value for the
depthAttachment attribute. |
R2MaskBufferDescription |
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 R2MaskBufferDescriptionType
area
in interface R2RenderTargetDescriptionType
area
attributepublic Optional<R2DepthAttachmentSpecificationType> depthAttachment()
depthAttachment
in interface R2MaskBufferDescriptionType
public final R2MaskBufferDescription 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 R2MaskBufferDescription withDepthAttachment(R2DepthAttachmentSpecificationType value)
depthAttachment
attribute.value
- The value for depthAttachmentthis
objectpublic final R2MaskBufferDescription 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)
R2MaskBufferDescription
that have equal attribute values.public int hashCode()
area
, depthAttachment
.public String toString()
R2MaskBufferDescription
with attribute values.public static R2MaskBufferDescription of(com.io7m.jregions.core.unparameterized.sizes.AreaSizeL area, Optional<R2DepthAttachmentSpecificationType> depthAttachment)
R2MaskBufferDescription
instance.area
- The value for the area
attributedepthAttachment
- The value for the depthAttachment
attributepublic static R2MaskBufferDescription copyOf(R2MaskBufferDescriptionType instance)
R2MaskBufferDescriptionType
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 R2MaskBufferDescription.Builder builder()
R2MaskBufferDescription
.Copyright © 2017 <code@io7m.com> http://io7m.com