@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 |
|---|---|
boolean |
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. |
static SMFSchema |
of(SMFSchemaIdentifier schemaIdentifier,
javaslang.collection.SortedMap<SMFAttributeName,SMFSchemaAttribute> requiredAttributes,
javaslang.collection.SortedMap<SMFAttributeName,SMFSchemaAttribute> optionalAttributes,
Optional<SMFCoordinateSystem> requiredCoordinateSystem,
boolean allowExtraAttributes)
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() |
SMFSchemaIdentifier |
schemaIdentifier() |
String |
toString()
Prints the immutable value
SMFSchema with attribute values. |
SMFSchema |
withAllowExtraAttributes(boolean 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 |
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 boolean allowExtraAttributes()
allowExtraAttributes in interface SMFSchemaTypetrue iff the mesh is allowed to contain attributes that are
not given in requiredAttributes()public 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(boolean 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 boolean equals(Object another)
SMFSchema that have equal attribute values.public int hashCode()
schemaIdentifier, requiredAttributes, optionalAttributes, requiredCoordinateSystem, allowExtraAttributes.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, boolean allowExtraAttributes)
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 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