Package com.io7m.smfj.processing.api
Class SMFAttributeArrayIntegerSigned4
- java.lang.Object
-
- com.io7m.smfj.processing.api.SMFAttributeArrayIntegerSigned4
-
- All Implemented Interfaces:
SMFAttributeArrayIntegerSigned4Type,SMFAttributeArrayType
public final class SMFAttributeArrayIntegerSigned4 extends java.lang.Object implements SMFAttributeArrayIntegerSigned4Type
The type of 4-element signed integer arrays.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSMFAttributeArrayIntegerSigned4.BuilderBuilds instances of typeSMFAttributeArrayIntegerSigned4.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SMFAttributeArrayIntegerSigned4.Builderbuilder()Creates a builder forSMFAttributeArrayIntegerSigned4.static SMFAttributeArrayIntegerSigned4copyOf(SMFAttributeArrayIntegerSigned4Type instance)Creates an immutable copy of aSMFAttributeArrayIntegerSigned4Typevalue.booleanequals(java.lang.Object another)This instance is equal to all instances ofSMFAttributeArrayIntegerSigned4that have equal attribute values.inthashCode()Computes a hash code from attributes:values.static SMFAttributeArrayIntegerSigned4of(java.lang.Iterable<? extends com.io7m.jtensors.core.unparameterized.vectors.Vector4L> values)Construct a new immutableSMFAttributeArrayIntegerSigned4instance.static SMFAttributeArrayIntegerSigned4of(java.util.List<com.io7m.jtensors.core.unparameterized.vectors.Vector4L> values)Construct a new immutableSMFAttributeArrayIntegerSigned4instance.java.lang.StringtoString()Prints the immutable valueSMFAttributeArrayIntegerSigned4with attribute values.java.util.List<com.io7m.jtensors.core.unparameterized.vectors.Vector4L>values()SMFAttributeArrayIntegerSigned4withValues(com.io7m.jtensors.core.unparameterized.vectors.Vector4L... elements)Copy the current immutable object with elements that replace the content ofvalues.SMFAttributeArrayIntegerSigned4withValues(java.lang.Iterable<? extends com.io7m.jtensors.core.unparameterized.vectors.Vector4L> 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.SMFAttributeArrayIntegerSigned4Type
matchArray, size
-
-
-
-
Method Detail
-
values
public java.util.List<com.io7m.jtensors.core.unparameterized.vectors.Vector4L> values()
- Specified by:
valuesin interfaceSMFAttributeArrayIntegerSigned4Type- Returns:
- The array values
-
withValues
public final SMFAttributeArrayIntegerSigned4 withValues(com.io7m.jtensors.core.unparameterized.vectors.Vector4L... 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 SMFAttributeArrayIntegerSigned4 withValues(java.lang.Iterable<? extends com.io7m.jtensors.core.unparameterized.vectors.Vector4L> 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 ofSMFAttributeArrayIntegerSigned4that 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 valueSMFAttributeArrayIntegerSigned4with attribute values.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of the value
-
of
public static SMFAttributeArrayIntegerSigned4 of(java.util.List<com.io7m.jtensors.core.unparameterized.vectors.Vector4L> values)
Construct a new immutableSMFAttributeArrayIntegerSigned4instance.- Parameters:
values- The value for thevaluesattribute- Returns:
- An immutable SMFAttributeArrayIntegerSigned4 instance
-
of
public static SMFAttributeArrayIntegerSigned4 of(java.lang.Iterable<? extends com.io7m.jtensors.core.unparameterized.vectors.Vector4L> values)
Construct a new immutableSMFAttributeArrayIntegerSigned4instance.- Parameters:
values- The value for thevaluesattribute- Returns:
- An immutable SMFAttributeArrayIntegerSigned4 instance
-
copyOf
public static SMFAttributeArrayIntegerSigned4 copyOf(SMFAttributeArrayIntegerSigned4Type instance)
Creates an immutable copy of aSMFAttributeArrayIntegerSigned4Typevalue. 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 SMFAttributeArrayIntegerSigned4 instance
-
builder
public static SMFAttributeArrayIntegerSigned4.Builder builder()
Creates a builder forSMFAttributeArrayIntegerSigned4.SMFAttributeArrayIntegerSigned4.builder() .addValues|addAllValues(com.io7m.jtensors.core.unparameterized.vectors.Vector4L) //valueselements .build();- Returns:
- A new SMFAttributeArrayIntegerSigned4 builder
-
-