@Generated(value={"Immutables.generator","R2DepthAttachmentCreateType"}) public final class R2DepthAttachmentCreate extends Object implements R2DepthAttachmentCreateType
Modifier and Type | Class and Description |
---|---|
static class |
R2DepthAttachmentCreate.Builder
Builds instances of type
R2DepthAttachmentCreate . |
Modifier and Type | Method and Description |
---|---|
static R2DepthAttachmentCreate.Builder |
builder()
Creates a builder for
R2DepthAttachmentCreate . |
static R2DepthAttachmentCreate |
copyOf(R2DepthAttachmentCreateType instance)
Creates an immutable copy of a
R2DepthAttachmentCreateType value. |
boolean |
equals(Object another)
This instance is equal to all instances of
R2DepthAttachmentCreate that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
precision . |
static R2DepthAttachmentCreate |
of(R2DepthPrecision precision)
Construct a new immutable
R2DepthAttachmentCreate instance. |
R2DepthPrecision |
precision() |
String |
toString()
Prints the immutable value
R2DepthAttachmentCreate with attribute values. |
R2DepthAttachmentCreate |
withPrecision(R2DepthPrecision value)
Copy the current immutable object by setting a value for the
precision attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
matchDepthAttachment
public R2DepthPrecision precision()
precision
in interface R2DepthAttachmentCreateType
public final R2DepthAttachmentCreate withPrecision(R2DepthPrecision value)
precision
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for precisionthis
objectpublic boolean equals(Object another)
R2DepthAttachmentCreate
that have equal attribute values.public int hashCode()
precision
.public String toString()
R2DepthAttachmentCreate
with attribute values.public static R2DepthAttachmentCreate of(R2DepthPrecision precision)
R2DepthAttachmentCreate
instance.precision
- The value for the precision
attributepublic static R2DepthAttachmentCreate copyOf(R2DepthAttachmentCreateType instance)
R2DepthAttachmentCreateType
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 R2DepthAttachmentCreate.Builder builder()
R2DepthAttachmentCreate
.Copyright © 2017 <code@io7m.com> http://io7m.com