Package com.io7m.smfj.processing.api
Class SMFAttributeArrayIntegerUnsigned1
- java.lang.Object
-
- com.io7m.smfj.processing.api.SMFAttributeArrayIntegerUnsigned1
-
- All Implemented Interfaces:
SMFAttributeArrayIntegerUnsigned1Type,SMFAttributeArrayType
public final class SMFAttributeArrayIntegerUnsigned1 extends java.lang.Object implements SMFAttributeArrayIntegerUnsigned1Type
The type of 1-element unsigned integer arrays.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSMFAttributeArrayIntegerUnsigned1.BuilderBuilds instances of typeSMFAttributeArrayIntegerUnsigned1.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SMFAttributeArrayIntegerUnsigned1.Builderbuilder()Creates a builder forSMFAttributeArrayIntegerUnsigned1.static SMFAttributeArrayIntegerUnsigned1copyOf(SMFAttributeArrayIntegerUnsigned1Type instance)Creates an immutable copy of aSMFAttributeArrayIntegerUnsigned1Typevalue.booleanequals(java.lang.Object another)This instance is equal to all instances ofSMFAttributeArrayIntegerUnsigned1that have equal attribute values.inthashCode()Computes a hash code from attributes:values.static SMFAttributeArrayIntegerUnsigned1of(java.lang.Iterable<java.lang.Long> values)Construct a new immutableSMFAttributeArrayIntegerUnsigned1instance.static SMFAttributeArrayIntegerUnsigned1of(java.util.List<java.lang.Long> values)Construct a new immutableSMFAttributeArrayIntegerUnsigned1instance.java.lang.StringtoString()Prints the immutable valueSMFAttributeArrayIntegerUnsigned1with attribute values.java.util.List<java.lang.Long>values()SMFAttributeArrayIntegerUnsigned1withValues(long... elements)Copy the current immutable object with elements that replace the content ofvalues.SMFAttributeArrayIntegerUnsigned1withValues(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.SMFAttributeArrayIntegerUnsigned1Type
matchArray, size
-
-
-
-
Method Detail
-
values
public java.util.List<java.lang.Long> values()
- Specified by:
valuesin interfaceSMFAttributeArrayIntegerUnsigned1Type- Returns:
- The array values
-
withValues
public final SMFAttributeArrayIntegerUnsigned1 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
thisobject
-
withValues
public final SMFAttributeArrayIntegerUnsigned1 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
thisobject
-
equals
public boolean equals(java.lang.Object another)
This instance is equal to all instances ofSMFAttributeArrayIntegerUnsigned1that 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 valueSMFAttributeArrayIntegerUnsigned1with attribute values.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of the value
-
of
public static SMFAttributeArrayIntegerUnsigned1 of(java.util.List<java.lang.Long> values)
Construct a new immutableSMFAttributeArrayIntegerUnsigned1instance.- Parameters:
values- The value for thevaluesattribute- Returns:
- An immutable SMFAttributeArrayIntegerUnsigned1 instance
-
of
public static SMFAttributeArrayIntegerUnsigned1 of(java.lang.Iterable<java.lang.Long> values)
Construct a new immutableSMFAttributeArrayIntegerUnsigned1instance.- Parameters:
values- The value for thevaluesattribute- Returns:
- An immutable SMFAttributeArrayIntegerUnsigned1 instance
-
copyOf
public static SMFAttributeArrayIntegerUnsigned1 copyOf(SMFAttributeArrayIntegerUnsigned1Type instance)
Creates an immutable copy of aSMFAttributeArrayIntegerUnsigned1Typevalue. 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 SMFAttributeArrayIntegerUnsigned1 instance
-
builder
public static SMFAttributeArrayIntegerUnsigned1.Builder builder()
Creates a builder forSMFAttributeArrayIntegerUnsigned1.SMFAttributeArrayIntegerUnsigned1.builder() .addValues|addAllValues(long) //valueselements .build();- Returns:
- A new SMFAttributeArrayIntegerUnsigned1 builder
-
-