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