@Generated(value={"Immutables.generator","SMFHeaderType"}) public final class SMFHeader extends Object implements SMFHeaderType
| Modifier and Type | Class and Description |
|---|---|
static class |
SMFHeader.Builder
Builds instances of type
SMFHeader. |
| Modifier and Type | Method and Description |
|---|---|
javaslang.collection.SortedMap<SMFAttributeName,SMFAttribute> |
attributesByName() |
javaslang.collection.List<SMFAttribute> |
attributesInOrder() |
static SMFHeader.Builder |
builder()
Creates a builder for
SMFHeader. |
SMFCoordinateSystem |
coordinateSystem() |
static SMFHeader |
copyOf(SMFHeaderType instance)
Creates an immutable copy of a
SMFHeaderType value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SMFHeader that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
triangles, vertexCount, schemaIdentifier, coordinateSystem, attributesInOrder, attributesByName. |
static SMFHeader |
of(SMFTriangles triangles,
long vertexCount,
Optional<SMFSchemaIdentifier> schemaIdentifier,
SMFCoordinateSystem coordinateSystem,
javaslang.collection.List<SMFAttribute> attributesInOrder)
Construct a new immutable
SMFHeader instance. |
Optional<SMFSchemaIdentifier> |
schemaIdentifier() |
String |
toString()
Prints the immutable value
SMFHeader with attribute values. |
SMFTriangles |
triangles() |
long |
vertexCount() |
SMFHeader |
withAttributesInOrder(javaslang.collection.List<SMFAttribute> value) |
SMFHeader |
withCoordinateSystem(SMFCoordinateSystem value)
Copy the current immutable object by setting a value for the
coordinateSystem attribute. |
SMFHeader |
withSchemaIdentifier(Optional<? extends SMFSchemaIdentifier> optional)
Copy the current immutable object by setting an optional value for the
schemaIdentifier attribute. |
SMFHeader |
withSchemaIdentifier(SMFSchemaIdentifier value)
Copy the current immutable object by setting a present value for the optional
schemaIdentifier attribute. |
SMFHeader |
withTriangles(SMFTriangles value)
Copy the current immutable object by setting a value for the
triangles attribute. |
SMFHeader |
withVertexCount(long value)
Copy the current immutable object by setting a value for the
vertexCount attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcheckPreconditionspublic SMFTriangles triangles()
triangles in interface SMFHeaderTypepublic long vertexCount()
vertexCount in interface SMFHeaderTypepublic Optional<SMFSchemaIdentifier> schemaIdentifier()
schemaIdentifier in interface SMFHeaderTypepublic SMFCoordinateSystem coordinateSystem()
coordinateSystem in interface SMFHeaderTypepublic javaslang.collection.List<SMFAttribute> attributesInOrder()
attributesInOrder in interface SMFHeaderTypepublic javaslang.collection.SortedMap<SMFAttributeName,SMFAttribute> attributesByName()
attributesByName in interface SMFHeaderTypepublic final SMFHeader withTriangles(SMFTriangles value)
triangles attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for trianglesthis objectpublic final SMFHeader withVertexCount(long value)
vertexCount attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for vertexCountthis objectpublic final SMFHeader withSchemaIdentifier(SMFSchemaIdentifier value)
schemaIdentifier attribute.value - The value for schemaIdentifierthis objectpublic final SMFHeader withSchemaIdentifier(Optional<? extends SMFSchemaIdentifier> optional)
schemaIdentifier attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for schemaIdentifierthis objectpublic final SMFHeader withCoordinateSystem(SMFCoordinateSystem value)
coordinateSystem attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for coordinateSystemthis objectpublic SMFHeader withAttributesInOrder(javaslang.collection.List<SMFAttribute> value)
public boolean equals(Object another)
SMFHeader that have equal attribute values.public int hashCode()
triangles, vertexCount, schemaIdentifier, coordinateSystem, attributesInOrder, attributesByName.public String toString()
SMFHeader with attribute values.public static SMFHeader of(SMFTriangles triangles, long vertexCount, Optional<SMFSchemaIdentifier> schemaIdentifier, SMFCoordinateSystem coordinateSystem, javaslang.collection.List<SMFAttribute> attributesInOrder)
SMFHeader instance.triangles - The value for the triangles attributevertexCount - The value for the vertexCount attributeschemaIdentifier - The value for the schemaIdentifier attributecoordinateSystem - The value for the coordinateSystem attributeattributesInOrder - The value for the attributesInOrder attributepublic static SMFHeader copyOf(SMFHeaderType instance)
SMFHeaderType value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static SMFHeader.Builder builder()
SMFHeader.Copyright © 2017 <code@io7m.com> http://io7m.com