Class SMFFormatDescription

    • Method Detail

      • suffix

        public java.lang.String suffix()
        Specified by:
        suffix in interface SMFFormatDescriptionType
        Returns:
        The filename suffix used for the format
      • withDescription

        public final SMFFormatDescription withDescription​(java.lang.String value)
        Copy the current immutable object by setting a value for the description attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for description
        Returns:
        A modified copy of the this object
      • withSuffix

        public final SMFFormatDescription withSuffix​(java.lang.String value)
        Copy the current immutable object by setting a value for the suffix attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for suffix
        Returns:
        A modified copy of the this object
      • withMimeType

        public final SMFFormatDescription withMimeType​(java.lang.String value)
        Copy the current immutable object by setting a value for the mimeType attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for mimeType
        Returns:
        A modified copy of the this object
      • withName

        public final SMFFormatDescription withName​(java.lang.String value)
        Copy the current immutable object by setting a value for the name attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for name
        Returns:
        A modified copy of the this object
      • withRandomAccess

        public final SMFFormatDescription withRandomAccess​(boolean value)
        Copy the current immutable object by setting a value for the randomAccess attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for randomAccess
        Returns:
        A modified copy of the this object
      • equals

        public boolean equals​(java.lang.Object another)
        This instance is equal to all instances of SMFFormatDescription that have equal attribute values.
        Overrides:
        equals in class java.lang.Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: description, suffix, mimeType, name, randomAccess.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • toString

        public java.lang.String toString()
        Prints the immutable value SMFFormatDescription with attribute values.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string representation of the value
      • copyOf

        public static SMFFormatDescription copyOf​(SMFFormatDescriptionType instance)
        Creates an immutable copy of a SMFFormatDescriptionType value. 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 SMFFormatDescription instance