Package com.io7m.smfj.processing.api
Class SMFAttributeArrayIntegerUnsigned3
- java.lang.Object
-
- com.io7m.smfj.processing.api.SMFAttributeArrayIntegerUnsigned3
-
- All Implemented Interfaces:
SMFAttributeArrayIntegerUnsigned3Type,SMFAttributeArrayType
public final class SMFAttributeArrayIntegerUnsigned3 extends java.lang.Object implements SMFAttributeArrayIntegerUnsigned3Type
The type of 3-element unsigned integer arrays.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSMFAttributeArrayIntegerUnsigned3.BuilderBuilds instances of typeSMFAttributeArrayIntegerUnsigned3.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SMFAttributeArrayIntegerUnsigned3.Builderbuilder()Creates a builder forSMFAttributeArrayIntegerUnsigned3.static SMFAttributeArrayIntegerUnsigned3copyOf(SMFAttributeArrayIntegerUnsigned3Type instance)Creates an immutable copy of aSMFAttributeArrayIntegerUnsigned3Typevalue.booleanequals(java.lang.Object another)This instance is equal to all instances ofSMFAttributeArrayIntegerUnsigned3that have equal attribute values.inthashCode()Computes a hash code from attributes:values.static SMFAttributeArrayIntegerUnsigned3of(java.lang.Iterable<? extends com.io7m.jtensors.core.unparameterized.vectors.Vector3L> values)Construct a new immutableSMFAttributeArrayIntegerUnsigned3instance.static SMFAttributeArrayIntegerUnsigned3of(java.util.List<com.io7m.jtensors.core.unparameterized.vectors.Vector3L> values)Construct a new immutableSMFAttributeArrayIntegerUnsigned3instance.java.lang.StringtoString()Prints the immutable valueSMFAttributeArrayIntegerUnsigned3with attribute values.java.util.List<com.io7m.jtensors.core.unparameterized.vectors.Vector3L>values()SMFAttributeArrayIntegerUnsigned3withValues(com.io7m.jtensors.core.unparameterized.vectors.Vector3L... elements)Copy the current immutable object with elements that replace the content ofvalues.SMFAttributeArrayIntegerUnsigned3withValues(java.lang.Iterable<? extends com.io7m.jtensors.core.unparameterized.vectors.Vector3L> 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.SMFAttributeArrayIntegerUnsigned3Type
matchArray, size
-
-
-
-
Method Detail
-
values
public java.util.List<com.io7m.jtensors.core.unparameterized.vectors.Vector3L> values()
- Specified by:
valuesin interfaceSMFAttributeArrayIntegerUnsigned3Type- Returns:
- The array values
-
withValues
public final SMFAttributeArrayIntegerUnsigned3 withValues(com.io7m.jtensors.core.unparameterized.vectors.Vector3L... elements)
Copy the current immutable object with elements that replace the content ofvalues.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withValues
public final SMFAttributeArrayIntegerUnsigned3 withValues(java.lang.Iterable<? extends com.io7m.jtensors.core.unparameterized.vectors.Vector3L> 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
thisobject
-
equals
public boolean equals(java.lang.Object another)
This instance is equal to all instances ofSMFAttributeArrayIntegerUnsigned3that have equal attribute values.- Overrides:
equalsin classjava.lang.Object- Returns:
trueifthisis equal toanotherinstance
-
hashCode
public int hashCode()
Computes a hash code from attributes:values.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueSMFAttributeArrayIntegerUnsigned3with attribute values.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of the value
-
of
public static SMFAttributeArrayIntegerUnsigned3 of(java.util.List<com.io7m.jtensors.core.unparameterized.vectors.Vector3L> values)
Construct a new immutableSMFAttributeArrayIntegerUnsigned3instance.- Parameters:
values- The value for thevaluesattribute- Returns:
- An immutable SMFAttributeArrayIntegerUnsigned3 instance
-
of
public static SMFAttributeArrayIntegerUnsigned3 of(java.lang.Iterable<? extends com.io7m.jtensors.core.unparameterized.vectors.Vector3L> values)
Construct a new immutableSMFAttributeArrayIntegerUnsigned3instance.- Parameters:
values- The value for thevaluesattribute- Returns:
- An immutable SMFAttributeArrayIntegerUnsigned3 instance
-
copyOf
public static SMFAttributeArrayIntegerUnsigned3 copyOf(SMFAttributeArrayIntegerUnsigned3Type instance)
Creates an immutable copy of aSMFAttributeArrayIntegerUnsigned3Typevalue. 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 SMFAttributeArrayIntegerUnsigned3 instance
-
builder
public static SMFAttributeArrayIntegerUnsigned3.Builder builder()
Creates a builder forSMFAttributeArrayIntegerUnsigned3.SMFAttributeArrayIntegerUnsigned3.builder() .addValues|addAllValues(com.io7m.jtensors.core.unparameterized.vectors.Vector3L) //valueselements .build();- Returns:
- A new SMFAttributeArrayIntegerUnsigned3 builder
-
-