Package pl.poznan.put.pdb
Class ImmutablePdbRemark465Line
java.lang.Object
pl.poznan.put.pdb.PdbRemark465Line
pl.poznan.put.pdb.ImmutablePdbRemark465Line
- All Implemented Interfaces:
Serializable,Comparable<ChainNumberICode>,ChainNumberICode
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ImmutablePdbRemark465Line
extends PdbRemark465Line
Immutable implementation of
PdbRemark465Line.
Use the builder to create immutable instances:
ImmutablePdbRemark465Line.builder().
Use the static factory method to create immutable instances:
ImmutablePdbRemark465Line.of().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutablePdbRemark465Line. -
Field Summary
Fields inherited from class pl.poznan.put.pdb.PdbRemark465Line
PROLOGUE -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutablePdbRemark465Line.static ImmutablePdbRemark465LinecopyOf(PdbRemark465Line instance) Creates an immutable copy of aPdbRemark465Linevalue.booleanThis instance is equal to all instances ofImmutablePdbRemark465Linethat have equal attribute values.inthashCode()Computes a hash code from attributes:modelNumber,residueName,chainIdentifier,residueNumber,insertionCode.intstatic ImmutablePdbRemark465Lineof(int modelNumber, String residueName, String chainIdentifier, int residueNumber, Optional<String> insertionCode) Construct a new immutablePdbRemark465Lineinstance.intwithChainIdentifier(String value) Copy the current immutable object by setting a value for thechainIdentifierattribute.withInsertionCode(String value) Copy the current immutable object by setting a present value for the optionalinsertionCodeattribute.withInsertionCode(Optional<String> optional) Copy the current immutable object by setting an optional value for theinsertionCodeattribute.withModelNumber(int value) Copy the current immutable object by setting a value for themodelNumberattribute.withResidueName(String value) Copy the current immutable object by setting a value for theresidueNameattribute.withResidueNumber(int value) Copy the current immutable object by setting a value for theresidueNumberattribute.Methods inherited from class pl.poznan.put.pdb.PdbRemark465Line
isCommentLine, parse, toPdb, toResidue, 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
-
modelNumber
public int modelNumber()- Specified by:
modelNumberin classPdbRemark465Line- Returns:
- The value of the
modelNumberattribute
-
residueName
- Specified by:
residueNamein classPdbRemark465Line- Returns:
- The value of the
residueNameattribute
-
chainIdentifier
- Specified by:
chainIdentifierin interfaceChainNumberICode- Specified by:
chainIdentifierin classPdbRemark465Line- Returns:
- The value of the
chainIdentifierattribute
-
residueNumber
public int residueNumber()- Specified by:
residueNumberin interfaceChainNumberICode- Specified by:
residueNumberin classPdbRemark465Line- Returns:
- The value of the
residueNumberattribute
-
insertionCode
- Specified by:
insertionCodein interfaceChainNumberICode- Specified by:
insertionCodein classPdbRemark465Line- Returns:
- The value of the
insertionCodeattribute
-
withModelNumber
Copy the current immutable object by setting a value for themodelNumberattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for modelNumber- 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
-
equals
This instance is equal to all instances ofImmutablePdbRemark465Linethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:modelNumber,residueName,chainIdentifier,residueNumber,insertionCode. -
of
public static ImmutablePdbRemark465Line of(int modelNumber, String residueName, String chainIdentifier, int residueNumber, Optional<String> insertionCode) Construct a new immutablePdbRemark465Lineinstance.- Parameters:
modelNumber- The value for themodelNumberattributeresidueName- The value for theresidueNameattributechainIdentifier- The value for thechainIdentifierattributeresidueNumber- The value for theresidueNumberattributeinsertionCode- The value for theinsertionCodeattribute- Returns:
- An immutable PdbRemark465Line instance
-
copyOf
Creates an immutable copy of aPdbRemark465Linevalue. 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 PdbRemark465Line instance
-
builder
Creates a builder forImmutablePdbRemark465Line.ImmutablePdbRemark465Line.builder() .modelNumber(int) // requiredmodelNumber.residueName(String) // requiredresidueName.chainIdentifier(String) // requiredchainIdentifier.residueNumber(int) // requiredresidueNumber.insertionCode(String) // optionalinsertionCode.build();- Returns:
- A new ImmutablePdbRemark465Line builder
-