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 class
Builds instances of typeImmutablePdbExpdtaLine
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutablePdbExpdtaLine
.static ImmutablePdbExpdtaLine
copyOf
(PdbExpdtaLine instance) Creates an immutable copy of aPdbExpdtaLine
value.boolean
This instance is equal to all instances ofImmutablePdbExpdtaLine
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:experimentalTechniques
.static ImmutablePdbExpdtaLine
of
(Iterable<? extends ExperimentalTechnique> experimentalTechniques) Construct a new immutablePdbExpdtaLine
instance.static ImmutablePdbExpdtaLine
of
(List<ExperimentalTechnique> experimentalTechniques) Construct a new immutablePdbExpdtaLine
instance.final ImmutablePdbExpdtaLine
withExperimentalTechniques
(Iterable<? extends ExperimentalTechnique> elements) Copy the current immutable object with elements that replace the content ofexperimentalTechniques
.final ImmutablePdbExpdtaLine
withExperimentalTechniques
(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:
experimentalTechniques
in classPdbExpdtaLine
- Returns:
- The value of the
experimentalTechniques
attribute
-
withExperimentalTechniques
Copy the current immutable object with elements that replace the content ofexperimentalTechniques
.- 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 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
this
object
-
equals
This instance is equal to all instances ofImmutablePdbExpdtaLine
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:experimentalTechniques
. -
of
Construct a new immutablePdbExpdtaLine
instance.- Parameters:
experimentalTechniques
- The value for theexperimentalTechniques
attribute- Returns:
- An immutable PdbExpdtaLine instance
-
of
public static ImmutablePdbExpdtaLine of(Iterable<? extends ExperimentalTechnique> experimentalTechniques) Construct a new immutablePdbExpdtaLine
instance.- Parameters:
experimentalTechniques
- The value for theexperimentalTechniques
attribute- Returns:
- An immutable PdbExpdtaLine instance
-
copyOf
Creates an immutable copy of aPdbExpdtaLine
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
Creates a builder forImmutablePdbExpdtaLine
.ImmutablePdbExpdtaLine.builder() .addExperimentalTechniques|addAllExperimentalTechniques(pl.poznan.put.pdb.ExperimentalTechnique) //
experimentalTechniques
elements .build();- Returns:
- A new ImmutablePdbExpdtaLine builder
-