Package pl.poznan.put.pdb
Class ImmutablePdbModresLine
java.lang.Object
pl.poznan.put.pdb.PdbModresLine
pl.poznan.put.pdb.ImmutablePdbModresLine
- All Implemented Interfaces:
Serializable,Comparable<ChainNumberICode>,ChainNumberICode
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ImmutablePdbModresLine
extends PdbModresLine
Immutable implementation of
PdbModresLine.
Use the builder to create immutable instances:
ImmutablePdbModresLine.builder().
Use the static factory method to create immutable instances:
ImmutablePdbModresLine.of().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutablePdbModresLine. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutablePdbModresLine.comment()static ImmutablePdbModresLinecopyOf(PdbModresLine instance) Creates an immutable copy of aPdbModresLinevalue.booleanThis instance is equal to all instances ofImmutablePdbModresLinethat have equal attribute values.inthashCode()Computes a hash code from attributes:idCode,residueName,chainIdentifier,residueNumber,insertionCode,standardResidueName,comment.idCode()static ImmutablePdbModresLineof(String idCode, String residueName, String chainIdentifier, int residueNumber, Optional<String> insertionCode, String standardResidueName, String comment) Construct a new immutablePdbModresLineinstance.intfinal ImmutablePdbModresLinewithChainIdentifier(String value) Copy the current immutable object by setting a value for thechainIdentifierattribute.final ImmutablePdbModresLinewithComment(String value) Copy the current immutable object by setting a value for thecommentattribute.final ImmutablePdbModresLinewithIdCode(String value) Copy the current immutable object by setting a value for theidCodeattribute.final ImmutablePdbModresLinewithInsertionCode(String value) Copy the current immutable object by setting a present value for the optionalinsertionCodeattribute.final ImmutablePdbModresLinewithInsertionCode(Optional<String> optional) Copy the current immutable object by setting an optional value for theinsertionCodeattribute.final ImmutablePdbModresLinewithResidueName(String value) Copy the current immutable object by setting a value for theresidueNameattribute.final ImmutablePdbModresLinewithResidueNumber(int value) Copy the current immutable object by setting a value for theresidueNumberattribute.final ImmutablePdbModresLinewithStandardResidueName(String value) Copy the current immutable object by setting a value for thestandardResidueNameattribute.Methods inherited from class pl.poznan.put.pdb.PdbModresLine
parse, toPdb, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface pl.poznan.put.pdb.ChainNumberICode
compareTo
-
Method Details
-
idCode
- Specified by:
idCodein classPdbModresLine- Returns:
- The value of the
idCodeattribute
-
residueName
- Specified by:
residueNamein classPdbModresLine- Returns:
- The value of the
residueNameattribute
-
chainIdentifier
- Specified by:
chainIdentifierin interfaceChainNumberICode- Specified by:
chainIdentifierin classPdbModresLine- Returns:
- The value of the
chainIdentifierattribute
-
residueNumber
public int residueNumber()- Specified by:
residueNumberin interfaceChainNumberICode- Specified by:
residueNumberin classPdbModresLine- Returns:
- The value of the
residueNumberattribute
-
insertionCode
- Specified by:
insertionCodein interfaceChainNumberICode- Specified by:
insertionCodein classPdbModresLine- Returns:
- The value of the
insertionCodeattribute
-
standardResidueName
- Specified by:
standardResidueNamein classPdbModresLine- Returns:
- The value of the
standardResidueNameattribute
-
comment
- Specified by:
commentin classPdbModresLine- Returns:
- The value of the
commentattribute
-
withIdCode
Copy the current immutable object by setting a value for theidCodeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for idCode- Returns:
- A modified copy of the
thisobject
-
withResidueName
Copy the current immutable object by setting a value for theresidueNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for residueName- Returns:
- A modified copy of the
thisobject
-
withChainIdentifier
Copy the current immutable object by setting a value for thechainIdentifierattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for chainIdentifier- Returns:
- A modified copy of the
thisobject
-
withResidueNumber
Copy the current immutable object by setting a value for theresidueNumberattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for residueNumber- Returns:
- A modified copy of the
thisobject
-
withInsertionCode
Copy the current immutable object by setting a present value for the optionalinsertionCodeattribute.- Parameters:
value- The value for insertionCode- Returns:
- A modified copy of
thisobject
-
withInsertionCode
Copy the current immutable object by setting an optional value for theinsertionCodeattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for insertionCode- Returns:
- A modified copy of
thisobject
-
withStandardResidueName
Copy the current immutable object by setting a value for thestandardResidueNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for standardResidueName- Returns:
- A modified copy of the
thisobject
-
withComment
Copy the current immutable object by setting a value for thecommentattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for comment- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutablePdbModresLinethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:idCode,residueName,chainIdentifier,residueNumber,insertionCode,standardResidueName,comment. -
of
public static ImmutablePdbModresLine of(String idCode, String residueName, String chainIdentifier, int residueNumber, Optional<String> insertionCode, String standardResidueName, String comment) Construct a new immutablePdbModresLineinstance.- Parameters:
idCode- The value for theidCodeattributeresidueName- The value for theresidueNameattributechainIdentifier- The value for thechainIdentifierattributeresidueNumber- The value for theresidueNumberattributeinsertionCode- The value for theinsertionCodeattributestandardResidueName- The value for thestandardResidueNameattributecomment- The value for thecommentattribute- Returns:
- An immutable PdbModresLine instance
-
copyOf
Creates an immutable copy of aPdbModresLinevalue. 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 PdbModresLine instance
-
builder
Creates a builder forImmutablePdbModresLine.ImmutablePdbModresLine.builder() .idCode(String) // requiredidCode.residueName(String) // requiredresidueName.chainIdentifier(String) // requiredchainIdentifier.residueNumber(int) // requiredresidueNumber.insertionCode(String) // optionalinsertionCode.standardResidueName(String) // requiredstandardResidueName.comment(String) // requiredcomment.build();- Returns:
- A new ImmutablePdbModresLine builder
-