Package pl.poznan.put.pdb
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutablePdbExpdtaLine. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutablePdbExpdtaLine.static ImmutablePdbExpdtaLinecopyOf(PdbExpdtaLine instance) Creates an immutable copy of aPdbExpdtaLinevalue.booleanThis instance is equal to all instances ofImmutablePdbExpdtaLinethat have equal attribute values.inthashCode()Computes a hash code from attributes:experimentalTechniques.static ImmutablePdbExpdtaLineof(Iterable<? extends ExperimentalTechnique> experimentalTechniques) Construct a new immutablePdbExpdtaLineinstance.static ImmutablePdbExpdtaLineof(List<ExperimentalTechnique> experimentalTechniques) Construct a new immutablePdbExpdtaLineinstance.final ImmutablePdbExpdtaLinewithExperimentalTechniques(Iterable<? extends ExperimentalTechnique> elements) Copy the current immutable object with elements that replace the content ofexperimentalTechniques.final ImmutablePdbExpdtaLinewithExperimentalTechniques(ExperimentalTechnique... elements) Copy the current immutable object with elements that replace the content ofexperimentalTechniques.Methods inherited from class pl.poznan.put.pdb.PdbExpdtaLine
parse, toPdb, toString
-
Method Details
-
experimentalTechniques
- Specified by:
experimentalTechniquesin classPdbExpdtaLine- Returns:
- The value of the
experimentalTechniquesattribute
-
withExperimentalTechniques
Copy the current immutable object with elements that replace the content ofexperimentalTechniques.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withExperimentalTechniques
public final ImmutablePdbExpdtaLine withExperimentalTechniques(Iterable<? extends ExperimentalTechnique> elements) Copy the current immutable object with elements that replace the content ofexperimentalTechniques. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of experimentalTechniques elements to set- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofImmutablePdbExpdtaLinethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:experimentalTechniques. -
of
Construct a new immutablePdbExpdtaLineinstance.- Parameters:
experimentalTechniques- The value for theexperimentalTechniquesattribute- Returns:
- An immutable PdbExpdtaLine instance
-
of
public static ImmutablePdbExpdtaLine of(Iterable<? extends ExperimentalTechnique> experimentalTechniques) Construct a new immutablePdbExpdtaLineinstance.- Parameters:
experimentalTechniques- The value for theexperimentalTechniquesattribute- Returns:
- An immutable PdbExpdtaLine instance
-
copyOf
Creates an immutable copy of aPdbExpdtaLinevalue. 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
Creates a builder forImmutablePdbExpdtaLine.ImmutablePdbExpdtaLine.builder() .addExperimentalTechniques|addAllExperimentalTechniques(pl.poznan.put.pdb.ExperimentalTechnique) //experimentalTechniqueselements .build();- Returns:
- A new ImmutablePdbExpdtaLine builder
-