Class ImmutablePdbExpdtaLine

    • Method Detail

      • withExperimentalTechniques

        public final ImmutablePdbExpdtaLine withExperimentalTechniques​(Iterable<? extends ExperimentalTechnique> elements)
        Copy the current immutable object with elements that replace the content of experimentalTechniques. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of experimentalTechniques elements to set
        Returns:
        A modified copy of this object
      • equals

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

        public int hashCode()
        Computes a hash code from attributes: experimentalTechniques.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • of

        public static ImmutablePdbExpdtaLine of​(List<ExperimentalTechnique> experimentalTechniques)
        Construct a new immutable PdbExpdtaLine instance.
        Parameters:
        experimentalTechniques - The value for the experimentalTechniques attribute
        Returns:
        An immutable PdbExpdtaLine instance
      • of

        public static ImmutablePdbExpdtaLine of​(Iterable<? extends ExperimentalTechnique> experimentalTechniques)
        Construct a new immutable PdbExpdtaLine instance.
        Parameters:
        experimentalTechniques - The value for the experimentalTechniques attribute
        Returns:
        An immutable PdbExpdtaLine instance
      • copyOf

        public static ImmutablePdbExpdtaLine copyOf​(PdbExpdtaLine instance)
        Creates an immutable copy of a PdbExpdtaLine 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 PdbExpdtaLine instance