@Generated(value={"Immutables.generator","SMFFormatDescriptionType"}) public final class SMFFormatDescription extends Object implements SMFFormatDescriptionType
| Modifier and Type | Class and Description |
|---|---|
static class |
SMFFormatDescription.Builder
Builds instances of type
SMFFormatDescription. |
| Modifier and Type | Method and Description |
|---|---|
static SMFFormatDescription.Builder |
builder()
Creates a builder for
SMFFormatDescription. |
static SMFFormatDescription |
copyOf(SMFFormatDescriptionType instance)
Creates an immutable copy of a
SMFFormatDescriptionType value. |
String |
description() |
boolean |
equals(Object another)
This instance is equal to all instances of
SMFFormatDescription that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
description, suffix, mimeType, name, randomAccess. |
String |
mimeType() |
String |
name() |
boolean |
randomAccess() |
String |
suffix() |
String |
toString()
Prints the immutable value
SMFFormatDescription with attribute values. |
SMFFormatDescription |
withDescription(String value)
Copy the current immutable object by setting a value for the
description attribute. |
SMFFormatDescription |
withMimeType(String value)
Copy the current immutable object by setting a value for the
mimeType attribute. |
SMFFormatDescription |
withName(String value)
Copy the current immutable object by setting a value for the
name attribute. |
SMFFormatDescription |
withRandomAccess(boolean value)
Copy the current immutable object by setting a value for the
randomAccess attribute. |
SMFFormatDescription |
withSuffix(String value)
Copy the current immutable object by setting a value for the
suffix attribute. |
public String description()
description in interface SMFFormatDescriptionTypepublic String suffix()
suffix in interface SMFFormatDescriptionTypepublic String mimeType()
mimeType in interface SMFFormatDescriptionTypepublic String name()
name in interface SMFFormatDescriptionTypepublic boolean randomAccess()
randomAccess in interface SMFFormatDescriptionTypetrue iff the format supports random accesspublic final SMFFormatDescription withDescription(String value)
description attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for descriptionthis objectpublic final SMFFormatDescription withSuffix(String value)
suffix attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for suffixthis objectpublic final SMFFormatDescription withMimeType(String value)
mimeType attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for mimeTypethis objectpublic final SMFFormatDescription withName(String value)
name attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for namethis objectpublic final SMFFormatDescription withRandomAccess(boolean value)
randomAccess attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for randomAccessthis objectpublic boolean equals(Object another)
SMFFormatDescription that have equal attribute values.public int hashCode()
description, suffix, mimeType, name, randomAccess.public String toString()
SMFFormatDescription with attribute values.public static SMFFormatDescription copyOf(SMFFormatDescriptionType instance)
SMFFormatDescriptionType 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 SMFFormatDescription.Builder builder()
SMFFormatDescription.Copyright © 2017 <code@io7m.com> http://io7m.com