Package com.io7m.smfj.processing.api
Class SMFAttributeArrayFloating4
- java.lang.Object
-
- com.io7m.smfj.processing.api.SMFAttributeArrayFloating4
-
- All Implemented Interfaces:
SMFAttributeArrayFloating4Type
,SMFAttributeArrayType
public final class SMFAttributeArrayFloating4 extends java.lang.Object implements SMFAttributeArrayFloating4Type
The type of 4-element floating point arrays.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SMFAttributeArrayFloating4.Builder
Builds instances of typeSMFAttributeArrayFloating4
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SMFAttributeArrayFloating4.Builder
builder()
Creates a builder forSMFAttributeArrayFloating4
.static SMFAttributeArrayFloating4
copyOf(SMFAttributeArrayFloating4Type instance)
Creates an immutable copy of aSMFAttributeArrayFloating4Type
value.boolean
equals(java.lang.Object another)
This instance is equal to all instances ofSMFAttributeArrayFloating4
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:values
.static SMFAttributeArrayFloating4
of(java.lang.Iterable<? extends com.io7m.jtensors.core.unparameterized.vectors.Vector4D> values)
Construct a new immutableSMFAttributeArrayFloating4
instance.static SMFAttributeArrayFloating4
of(java.util.List<com.io7m.jtensors.core.unparameterized.vectors.Vector4D> values)
Construct a new immutableSMFAttributeArrayFloating4
instance.java.lang.String
toString()
Prints the immutable valueSMFAttributeArrayFloating4
with attribute values.java.util.List<com.io7m.jtensors.core.unparameterized.vectors.Vector4D>
values()
SMFAttributeArrayFloating4
withValues(com.io7m.jtensors.core.unparameterized.vectors.Vector4D... elements)
Copy the current immutable object with elements that replace the content ofvalues
.SMFAttributeArrayFloating4
withValues(java.lang.Iterable<? extends com.io7m.jtensors.core.unparameterized.vectors.Vector4D> elements)
Copy the current immutable object with elements that replace the content ofvalues
.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.io7m.smfj.processing.api.SMFAttributeArrayFloating4Type
matchArray, size
-
-
-
-
Method Detail
-
values
public java.util.List<com.io7m.jtensors.core.unparameterized.vectors.Vector4D> values()
- Specified by:
values
in interfaceSMFAttributeArrayFloating4Type
- Returns:
- The array values
-
withValues
public final SMFAttributeArrayFloating4 withValues(com.io7m.jtensors.core.unparameterized.vectors.Vector4D... elements)
Copy the current immutable object with elements that replace the content ofvalues
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
withValues
public final SMFAttributeArrayFloating4 withValues(java.lang.Iterable<? extends com.io7m.jtensors.core.unparameterized.vectors.Vector4D> elements)
Copy the current immutable object with elements that replace the content ofvalues
. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
elements
- An iterable of values elements to set- Returns:
- A modified copy of
this
object
-
equals
public boolean equals(java.lang.Object another)
This instance is equal to all instances ofSMFAttributeArrayFloating4
that have equal attribute values.- Overrides:
equals
in classjava.lang.Object
- Returns:
true
ifthis
is equal toanother
instance
-
hashCode
public int hashCode()
Computes a hash code from attributes:values
.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueSMFAttributeArrayFloating4
with attribute values.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the value
-
of
public static SMFAttributeArrayFloating4 of(java.util.List<com.io7m.jtensors.core.unparameterized.vectors.Vector4D> values)
Construct a new immutableSMFAttributeArrayFloating4
instance.- Parameters:
values
- The value for thevalues
attribute- Returns:
- An immutable SMFAttributeArrayFloating4 instance
-
of
public static SMFAttributeArrayFloating4 of(java.lang.Iterable<? extends com.io7m.jtensors.core.unparameterized.vectors.Vector4D> values)
Construct a new immutableSMFAttributeArrayFloating4
instance.- Parameters:
values
- The value for thevalues
attribute- Returns:
- An immutable SMFAttributeArrayFloating4 instance
-
copyOf
public static SMFAttributeArrayFloating4 copyOf(SMFAttributeArrayFloating4Type instance)
Creates an immutable copy of aSMFAttributeArrayFloating4Type
value. 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 SMFAttributeArrayFloating4 instance
-
builder
public static SMFAttributeArrayFloating4.Builder builder()
Creates a builder forSMFAttributeArrayFloating4
.SMFAttributeArrayFloating4.builder() .addValues|addAllValues(com.io7m.jtensors.core.unparameterized.vectors.Vector4D) //
values
elements .build();- Returns:
- A new SMFAttributeArrayFloating4 builder
-
-