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 classBuilds instances of typeImmutablePdbTitleLine. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutablePdbTitleLine.static ImmutablePdbTitleLinecopyOf(PdbTitleLine instance) Creates an immutable copy of aPdbTitleLinevalue.booleanThis instance is equal to all instances ofImmutablePdbTitleLinethat have equal attribute values.inthashCode()Computes a hash code from attributes:continuation,title.static ImmutablePdbTitleLineConstruct a new immutablePdbTitleLineinstance.title()final ImmutablePdbTitleLinewithContinuation(String value) Copy the current immutable object by setting a value for thecontinuationattribute.final ImmutablePdbTitleLineCopy the current immutable object by setting a value for thetitleattribute.Methods inherited from class pl.poznan.put.pdb.PdbTitleLine
parse, toPdb, toString
-
Method Details
-
continuation
- Specified by:
continuationin classPdbTitleLine- Returns:
- The value of the
continuationattribute
-
title
- Specified by:
titlein classPdbTitleLine- Returns:
- The value of the
titleattribute
-
withContinuation
Copy the current immutable object by setting a value for thecontinuationattribute. 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
thisobject
-
withTitle
Copy the current immutable object by setting a value for thetitleattribute. 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
thisobject
-
equals
This instance is equal to all instances ofImmutablePdbTitleLinethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:continuation,title. -
of
Construct a new immutablePdbTitleLineinstance.- Parameters:
continuation- The value for thecontinuationattributetitle- The value for thetitleattribute- Returns:
- An immutable PdbTitleLine instance
-
copyOf
Creates an immutable copy of aPdbTitleLinevalue. 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) // requiredcontinuation.title(String) // requiredtitle.build();- Returns:
- A new ImmutablePdbTitleLine builder
-