Package pl.poznan.put.pdb
Class ImmutablePdbTitleLine
java.lang.Object
pl.poznan.put.pdb.PdbTitleLine
pl.poznan.put.pdb.ImmutablePdbTitleLine
- All Implemented Interfaces:
Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ImmutablePdbTitleLine
extends PdbTitleLine
Immutable implementation of
PdbTitleLine
.
Use the builder to create immutable instances:
ImmutablePdbTitleLine.builder()
.
Use the static factory method to create immutable instances:
ImmutablePdbTitleLine.of()
.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutablePdbTitleLine
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutablePdbTitleLine
.static ImmutablePdbTitleLine
copyOf
(PdbTitleLine instance) Creates an immutable copy of aPdbTitleLine
value.boolean
This instance is equal to all instances ofImmutablePdbTitleLine
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:continuation
,title
.static ImmutablePdbTitleLine
Construct a new immutablePdbTitleLine
instance.title()
final ImmutablePdbTitleLine
withContinuation
(String value) Copy the current immutable object by setting a value for thecontinuation
attribute.final ImmutablePdbTitleLine
Copy the current immutable object by setting a value for thetitle
attribute.Methods inherited from class pl.poznan.put.pdb.PdbTitleLine
parse, toPdb, toString
-
Method Details
-
continuation
- Specified by:
continuation
in classPdbTitleLine
- Returns:
- The value of the
continuation
attribute
-
title
- Specified by:
title
in classPdbTitleLine
- Returns:
- The value of the
title
attribute
-
withContinuation
Copy the current immutable object by setting a value for thecontinuation
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for continuation- Returns:
- A modified copy of the
this
object
-
withTitle
Copy the current immutable object by setting a value for thetitle
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for title- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutablePdbTitleLine
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:continuation
,title
. -
of
Construct a new immutablePdbTitleLine
instance.- Parameters:
continuation
- The value for thecontinuation
attributetitle
- The value for thetitle
attribute- Returns:
- An immutable PdbTitleLine instance
-
copyOf
Creates an immutable copy of aPdbTitleLine
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 PdbTitleLine instance
-
builder
Creates a builder forImmutablePdbTitleLine
.ImmutablePdbTitleLine.builder() .continuation(String) // required
continuation
.title(String) // requiredtitle
.build();- Returns:
- A new ImmutablePdbTitleLine builder
-