Package com.io7m.smfj.processing.api
Class SMFAttributeArrayIntegerUnsigned2
- java.lang.Object
-
- com.io7m.smfj.processing.api.SMFAttributeArrayIntegerUnsigned2
-
- All Implemented Interfaces:
SMFAttributeArrayIntegerUnsigned2Type
,SMFAttributeArrayType
public final class SMFAttributeArrayIntegerUnsigned2 extends java.lang.Object implements SMFAttributeArrayIntegerUnsigned2Type
The type of 2-element unsigned integer arrays.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SMFAttributeArrayIntegerUnsigned2.Builder
Builds instances of typeSMFAttributeArrayIntegerUnsigned2
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SMFAttributeArrayIntegerUnsigned2.Builder
builder()
Creates a builder forSMFAttributeArrayIntegerUnsigned2
.static SMFAttributeArrayIntegerUnsigned2
copyOf(SMFAttributeArrayIntegerUnsigned2Type instance)
Creates an immutable copy of aSMFAttributeArrayIntegerUnsigned2Type
value.boolean
equals(java.lang.Object another)
This instance is equal to all instances ofSMFAttributeArrayIntegerUnsigned2
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:values
.static SMFAttributeArrayIntegerUnsigned2
of(java.lang.Iterable<? extends com.io7m.jtensors.core.unparameterized.vectors.Vector2L> values)
Construct a new immutableSMFAttributeArrayIntegerUnsigned2
instance.static SMFAttributeArrayIntegerUnsigned2
of(java.util.List<com.io7m.jtensors.core.unparameterized.vectors.Vector2L> values)
Construct a new immutableSMFAttributeArrayIntegerUnsigned2
instance.java.lang.String
toString()
Prints the immutable valueSMFAttributeArrayIntegerUnsigned2
with attribute values.java.util.List<com.io7m.jtensors.core.unparameterized.vectors.Vector2L>
values()
SMFAttributeArrayIntegerUnsigned2
withValues(com.io7m.jtensors.core.unparameterized.vectors.Vector2L... elements)
Copy the current immutable object with elements that replace the content ofvalues
.SMFAttributeArrayIntegerUnsigned2
withValues(java.lang.Iterable<? extends com.io7m.jtensors.core.unparameterized.vectors.Vector2L> 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.SMFAttributeArrayIntegerUnsigned2Type
matchArray, size
-
-
-
-
Method Detail
-
values
public java.util.List<com.io7m.jtensors.core.unparameterized.vectors.Vector2L> values()
- Specified by:
values
in interfaceSMFAttributeArrayIntegerUnsigned2Type
- Returns:
- The array values
-
withValues
public final SMFAttributeArrayIntegerUnsigned2 withValues(com.io7m.jtensors.core.unparameterized.vectors.Vector2L... 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 SMFAttributeArrayIntegerUnsigned2 withValues(java.lang.Iterable<? extends com.io7m.jtensors.core.unparameterized.vectors.Vector2L> 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 ofSMFAttributeArrayIntegerUnsigned2
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 valueSMFAttributeArrayIntegerUnsigned2
with attribute values.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the value
-
of
public static SMFAttributeArrayIntegerUnsigned2 of(java.util.List<com.io7m.jtensors.core.unparameterized.vectors.Vector2L> values)
Construct a new immutableSMFAttributeArrayIntegerUnsigned2
instance.- Parameters:
values
- The value for thevalues
attribute- Returns:
- An immutable SMFAttributeArrayIntegerUnsigned2 instance
-
of
public static SMFAttributeArrayIntegerUnsigned2 of(java.lang.Iterable<? extends com.io7m.jtensors.core.unparameterized.vectors.Vector2L> values)
Construct a new immutableSMFAttributeArrayIntegerUnsigned2
instance.- Parameters:
values
- The value for thevalues
attribute- Returns:
- An immutable SMFAttributeArrayIntegerUnsigned2 instance
-
copyOf
public static SMFAttributeArrayIntegerUnsigned2 copyOf(SMFAttributeArrayIntegerUnsigned2Type instance)
Creates an immutable copy of aSMFAttributeArrayIntegerUnsigned2Type
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 SMFAttributeArrayIntegerUnsigned2 instance
-
builder
public static SMFAttributeArrayIntegerUnsigned2.Builder builder()
Creates a builder forSMFAttributeArrayIntegerUnsigned2
.SMFAttributeArrayIntegerUnsigned2.builder() .addValues|addAllValues(com.io7m.jtensors.core.unparameterized.vectors.Vector2L) //
values
elements .build();- Returns:
- A new SMFAttributeArrayIntegerUnsigned2 builder
-
-