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 ofPdbExpdtaLine.Use the builder to create immutable instances:
ImmutablePdbExpdtaLine.builder(). Use the static factory method to create immutable instances:ImmutablePdbExpdtaLine.of().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutablePdbExpdtaLine.BuilderBuilds instances of typeImmutablePdbExpdtaLine.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutablePdbExpdtaLine.Builderbuilder()Creates a builder forImmutablePdbExpdtaLine.static ImmutablePdbExpdtaLinecopyOf(PdbExpdtaLine instance)Creates an immutable copy of aPdbExpdtaLinevalue.booleanequals(Object another)This instance is equal to all instances ofImmutablePdbExpdtaLinethat have equal attribute values.List<ExperimentalTechnique>experimentalTechniques()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.ImmutablePdbExpdtaLinewithExperimentalTechniques(Iterable<? extends ExperimentalTechnique> elements)Copy the current immutable object with elements that replace the content ofexperimentalTechniques.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 Detail
-
experimentalTechniques
public List<ExperimentalTechnique> experimentalTechniques()
- Specified by:
experimentalTechniquesin classPdbExpdtaLine- Returns:
- The value of the
experimentalTechniquesattribute
-
withExperimentalTechniques
public final ImmutablePdbExpdtaLine withExperimentalTechniques(ExperimentalTechnique... elements)
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
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutablePdbExpdtaLinethat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:experimentalTechniques.
-
of
public static ImmutablePdbExpdtaLine of(List<ExperimentalTechnique> experimentalTechniques)
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
public static ImmutablePdbExpdtaLine copyOf(PdbExpdtaLine instance)
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
public static ImmutablePdbExpdtaLine.Builder builder()
Creates a builder forImmutablePdbExpdtaLine.ImmutablePdbExpdtaLine.builder() .addExperimentalTechniques|addAllExperimentalTechniques(pl.poznan.put.pdb.ExperimentalTechnique) //experimentalTechniqueselements .build();- Returns:
- A new ImmutablePdbExpdtaLine builder
-
-