@Generated(value={"Immutables.generator","SMFSchemaType"}) public final class SMFSchema extends Object implements SMFSchemaType
| Modifier and Type | Class and Description |
|---|---|
static class |
SMFSchema.Builder
Builds instances of type
SMFSchema. |
| Modifier and Type | Method and Description |
|---|---|
SMFSchemaAllowExtraAttributes |
allowExtraAttributes() |
static SMFSchema.Builder |
builder()
Creates a builder for
SMFSchema. |
static SMFSchema |
copyOf(SMFSchemaType instance)
Creates an immutable copy of a
SMFSchemaType value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SMFSchema that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
schemaIdentifier, requiredAttributes, optionalAttributes, requiredCoordinateSystem, allowExtraAttributes, requireTriangles, requireVertices. |
static SMFSchema |
of(SMFSchemaIdentifier schemaIdentifier,
javaslang.collection.SortedMap<SMFAttributeName,SMFSchemaAttribute> requiredAttributes,
javaslang.collection.SortedMap<SMFAttributeName,SMFSchemaAttribute> optionalAttributes,
Optional<SMFCoordinateSystem> requiredCoordinateSystem,
SMFSchemaAllowExtraAttributes allowExtraAttributes,
SMFSchemaRequireTriangles requireTriangles,
SMFSchemaRequireVertices requireVertices)
Construct a new immutable
SMFSchema instance. |
javaslang.collection.SortedMap<SMFAttributeName,SMFSchemaAttribute> |
optionalAttributes()
A schema may define optional attributes.
|
javaslang.collection.SortedMap<SMFAttributeName,SMFSchemaAttribute> |
requiredAttributes()
A schema may define required attributes.
|
Optional<SMFCoordinateSystem> |
requiredCoordinateSystem() |
SMFSchemaRequireTriangles |
requireTriangles() |
SMFSchemaRequireVertices |
requireVertices() |
SMFSchemaIdentifier |
schemaIdentifier() |
String |
toString()
Prints the immutable value
SMFSchema with attribute values. |
SMFSchema |
withAllowExtraAttributes(SMFSchemaAllowExtraAttributes value)
Copy the current immutable object by setting a value for the
allowExtraAttributes attribute. |
SMFSchema |
withOptionalAttributes(javaslang.collection.SortedMap<SMFAttributeName,SMFSchemaAttribute> value) |
SMFSchema |
withRequiredAttributes(javaslang.collection.SortedMap<SMFAttributeName,SMFSchemaAttribute> value) |
SMFSchema |
withRequiredCoordinateSystem(Optional<? extends SMFCoordinateSystem> optional)
Copy the current immutable object by setting an optional value for the
requiredCoordinateSystem attribute. |
SMFSchema |
withRequiredCoordinateSystem(SMFCoordinateSystem value)
Copy the current immutable object by setting a present value for the optional
requiredCoordinateSystem attribute. |
SMFSchema |
withRequireTriangles(SMFSchemaRequireTriangles value)
Copy the current immutable object by setting a value for the
requireTriangles attribute. |
SMFSchema |
withRequireVertices(SMFSchemaRequireVertices value)
Copy the current immutable object by setting a value for the
requireVertices attribute. |
SMFSchema |
withSchemaIdentifier(SMFSchemaIdentifier value)
Copy the current immutable object by setting a value for the
schemaIdentifier attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcheckPreconditionspublic SMFSchemaIdentifier schemaIdentifier()
schemaIdentifier in interface SMFSchemaTypepublic javaslang.collection.SortedMap<SMFAttributeName,SMFSchemaAttribute> requiredAttributes()
requiredAttributes in interface SMFSchemaTypepublic javaslang.collection.SortedMap<SMFAttributeName,SMFSchemaAttribute> optionalAttributes()
optionalAttributes in interface SMFSchemaTypepublic Optional<SMFCoordinateSystem> requiredCoordinateSystem()
requiredCoordinateSystem in interface SMFSchemaTypepublic SMFSchemaAllowExtraAttributes allowExtraAttributes()
allowExtraAttributes in interface SMFSchemaTypeSMFSchemaAllowExtraAttributes.SMF_EXTRA_ATTRIBUTES_ALLOWED
if the mesh is allowed to contain attributes that are not given in requiredAttributes()public SMFSchemaRequireTriangles requireTriangles()
requireTriangles in interface SMFSchemaTypeSMFSchemaRequireTriangles.SMF_TRIANGLES_REQUIRED if a
non-zero triangle count is requiredpublic SMFSchemaRequireVertices requireVertices()
requireVertices in interface SMFSchemaTypeSMFSchemaRequireVertices.SMF_VERTICES_REQUIRED if a
non-zero vertex count is requiredpublic final SMFSchema withSchemaIdentifier(SMFSchemaIdentifier value)
schemaIdentifier attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for schemaIdentifierthis objectpublic SMFSchema withRequiredAttributes(javaslang.collection.SortedMap<SMFAttributeName,SMFSchemaAttribute> value)
public SMFSchema withOptionalAttributes(javaslang.collection.SortedMap<SMFAttributeName,SMFSchemaAttribute> value)
public final SMFSchema withRequiredCoordinateSystem(SMFCoordinateSystem value)
requiredCoordinateSystem attribute.value - The value for requiredCoordinateSystemthis objectpublic final SMFSchema withRequiredCoordinateSystem(Optional<? extends SMFCoordinateSystem> optional)
requiredCoordinateSystem 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 requiredCoordinateSystemthis objectpublic final SMFSchema withAllowExtraAttributes(SMFSchemaAllowExtraAttributes value)
allowExtraAttributes attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for allowExtraAttributesthis objectpublic final SMFSchema withRequireTriangles(SMFSchemaRequireTriangles value)
requireTriangles attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for requireTrianglesthis objectpublic final SMFSchema withRequireVertices(SMFSchemaRequireVertices value)
requireVertices attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for requireVerticesthis objectpublic boolean equals(Object another)
SMFSchema that have equal attribute values.public int hashCode()
schemaIdentifier, requiredAttributes, optionalAttributes, requiredCoordinateSystem, allowExtraAttributes, requireTriangles, requireVertices.public String toString()
SMFSchema with attribute values.public static SMFSchema of(SMFSchemaIdentifier schemaIdentifier, javaslang.collection.SortedMap<SMFAttributeName,SMFSchemaAttribute> requiredAttributes, javaslang.collection.SortedMap<SMFAttributeName,SMFSchemaAttribute> optionalAttributes, Optional<SMFCoordinateSystem> requiredCoordinateSystem, SMFSchemaAllowExtraAttributes allowExtraAttributes, SMFSchemaRequireTriangles requireTriangles, SMFSchemaRequireVertices requireVertices)
SMFSchema instance.schemaIdentifier - The value for the schemaIdentifier attributerequiredAttributes - The value for the requiredAttributes attributeoptionalAttributes - The value for the optionalAttributes attributerequiredCoordinateSystem - The value for the requiredCoordinateSystem attributeallowExtraAttributes - The value for the allowExtraAttributes attributerequireTriangles - The value for the requireTriangles attributerequireVertices - The value for the requireVertices attributepublic static SMFSchema copyOf(SMFSchemaType instance)
SMFSchemaType 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 SMFSchema.Builder builder()
SMFSchema.Copyright © 2017 <code@io7m.com> http://io7m.com