Class ImmutablePdbExpdtaLine

java.lang.Object
pl.poznan.put.pdb.PdbExpdtaLine
pl.poznan.put.pdb.ImmutablePdbExpdtaLine
All Implemented Interfaces:
Serializable

@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutablePdbExpdtaLine extends PdbExpdtaLine
Immutable implementation of PdbExpdtaLine.

Use the builder to create immutable instances: ImmutablePdbExpdtaLine.builder(). Use the static factory method to create immutable instances: ImmutablePdbExpdtaLine.of().

See Also:
  • Method Details

    • experimentalTechniques

      public List<ExperimentalTechnique> experimentalTechniques()
      Specified by:
      experimentalTechniques in class PdbExpdtaLine
      Returns:
      The value of the experimentalTechniques attribute
    • withExperimentalTechniques

      public final ImmutablePdbExpdtaLine withExperimentalTechniques(ExperimentalTechnique... elements)
      Copy the current immutable object with elements that replace the content of experimentalTechniques.
      Parameters:
      elements - The elements to set
      Returns:
      A modified copy of this object
    • 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
    • builder

      public static ImmutablePdbExpdtaLine.Builder builder()
      Creates a builder for ImmutablePdbExpdtaLine.
       ImmutablePdbExpdtaLine.builder()
          .addExperimentalTechniques|addAllExperimentalTechniques(pl.poznan.put.pdb.ExperimentalTechnique) // experimentalTechniques elements
          .build();
       
      Returns:
      A new ImmutablePdbExpdtaLine builder