@Generated(value={"Immutables.generator","R2DebugLineSegmentType"}) public final class R2DebugLineSegment extends Object implements R2DebugLineSegmentType
Modifier and Type | Class and Description |
---|---|
static class |
R2DebugLineSegment.Builder
Builds instances of type
R2DebugLineSegment . |
Modifier and Type | Method and Description |
---|---|
static R2DebugLineSegment.Builder |
builder()
Creates a builder for
R2DebugLineSegment . |
static R2DebugLineSegment |
copyOf(R2DebugLineSegmentType instance)
Creates an immutable copy of a
R2DebugLineSegmentType value. |
boolean |
equals(Object another)
This instance is equal to all instances of
R2DebugLineSegment that have equal attribute values. |
com.io7m.jtensors.core.parameterized.vectors.PVector3D<R2SpaceWorldType> |
from() |
com.io7m.jtensors.core.parameterized.vectors.PVector4D<R2SpaceRGBAType> |
fromColor() |
int |
hashCode()
Computes a hash code from attributes:
from , fromColor , to , toColor . |
static R2DebugLineSegment |
of(com.io7m.jtensors.core.parameterized.vectors.PVector3D<R2SpaceWorldType> from,
com.io7m.jtensors.core.parameterized.vectors.PVector4D<R2SpaceRGBAType> fromColor,
com.io7m.jtensors.core.parameterized.vectors.PVector3D<R2SpaceWorldType> to,
com.io7m.jtensors.core.parameterized.vectors.PVector4D<R2SpaceRGBAType> toColor)
Construct a new immutable
R2DebugLineSegment instance. |
com.io7m.jtensors.core.parameterized.vectors.PVector3D<R2SpaceWorldType> |
to() |
com.io7m.jtensors.core.parameterized.vectors.PVector4D<R2SpaceRGBAType> |
toColor() |
String |
toString()
Prints the immutable value
R2DebugLineSegment with attribute values. |
R2DebugLineSegment |
withFrom(com.io7m.jtensors.core.parameterized.vectors.PVector3D<R2SpaceWorldType> value)
Copy the current immutable object by setting a value for the
from attribute. |
R2DebugLineSegment |
withFromColor(com.io7m.jtensors.core.parameterized.vectors.PVector4D<R2SpaceRGBAType> value)
Copy the current immutable object by setting a value for the
fromColor attribute. |
R2DebugLineSegment |
withTo(com.io7m.jtensors.core.parameterized.vectors.PVector3D<R2SpaceWorldType> value)
Copy the current immutable object by setting a value for the
to attribute. |
R2DebugLineSegment |
withToColor(com.io7m.jtensors.core.parameterized.vectors.PVector4D<R2SpaceRGBAType> value)
Copy the current immutable object by setting a value for the
toColor attribute. |
public com.io7m.jtensors.core.parameterized.vectors.PVector3D<R2SpaceWorldType> from()
from
in interface R2DebugLineSegmentType
public com.io7m.jtensors.core.parameterized.vectors.PVector4D<R2SpaceRGBAType> fromColor()
fromColor
in interface R2DebugLineSegmentType
public com.io7m.jtensors.core.parameterized.vectors.PVector3D<R2SpaceWorldType> to()
to
in interface R2DebugLineSegmentType
public com.io7m.jtensors.core.parameterized.vectors.PVector4D<R2SpaceRGBAType> toColor()
toColor
in interface R2DebugLineSegmentType
public final R2DebugLineSegment withFrom(com.io7m.jtensors.core.parameterized.vectors.PVector3D<R2SpaceWorldType> value)
from
attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this
.value
- A new value for fromthis
objectpublic final R2DebugLineSegment withFromColor(com.io7m.jtensors.core.parameterized.vectors.PVector4D<R2SpaceRGBAType> value)
fromColor
attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this
.value
- A new value for fromColorthis
objectpublic final R2DebugLineSegment withTo(com.io7m.jtensors.core.parameterized.vectors.PVector3D<R2SpaceWorldType> value)
to
attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this
.value
- A new value for tothis
objectpublic final R2DebugLineSegment withToColor(com.io7m.jtensors.core.parameterized.vectors.PVector4D<R2SpaceRGBAType> value)
toColor
attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this
.value
- A new value for toColorthis
objectpublic boolean equals(Object another)
R2DebugLineSegment
that have equal attribute values.public int hashCode()
from
, fromColor
, to
, toColor
.public String toString()
R2DebugLineSegment
with attribute values.public static R2DebugLineSegment of(com.io7m.jtensors.core.parameterized.vectors.PVector3D<R2SpaceWorldType> from, com.io7m.jtensors.core.parameterized.vectors.PVector4D<R2SpaceRGBAType> fromColor, com.io7m.jtensors.core.parameterized.vectors.PVector3D<R2SpaceWorldType> to, com.io7m.jtensors.core.parameterized.vectors.PVector4D<R2SpaceRGBAType> toColor)
R2DebugLineSegment
instance.from
- The value for the from
attributefromColor
- The value for the fromColor
attributeto
- The value for the to
attributetoColor
- The value for the toColor
attributepublic static R2DebugLineSegment copyOf(R2DebugLineSegmentType instance)
R2DebugLineSegmentType
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 R2DebugLineSegment.Builder builder()
R2DebugLineSegment
.Copyright © 2017 <code@io7m.com> http://io7m.com