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 ofPdbRemark465Line.Use the builder to create immutable instances:
ImmutablePdbRemark465Line.builder(). Use the static factory method to create immutable instances:ImmutablePdbRemark465Line.of().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutablePdbRemark465Line.BuilderBuilds instances of typeImmutablePdbRemark465Line.
-
Field Summary
-
Fields inherited from class pl.poznan.put.pdb.PdbRemark465Line
PROLOGUE
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutablePdbRemark465Line.Builderbuilder()Creates a builder forImmutablePdbRemark465Line.StringchainIdentifier()static ImmutablePdbRemark465LinecopyOf(PdbRemark465Line instance)Creates an immutable copy of aPdbRemark465Linevalue.booleanequals(Object another)This instance is equal to all instances ofImmutablePdbRemark465Linethat have equal attribute values.inthashCode()Computes a hash code from attributes:modelNumber,residueName,chainIdentifier,residueNumber,insertionCode.StringinsertionCode()intmodelNumber()static ImmutablePdbRemark465Lineof(int modelNumber, String residueName, String chainIdentifier, int residueNumber, String insertionCode)Construct a new immutablePdbRemark465Lineinstance.StringresidueName()intresidueNumber()ImmutablePdbRemark465LinewithChainIdentifier(String value)Copy the current immutable object by setting a value for thechainIdentifierattribute.ImmutablePdbRemark465LinewithInsertionCode(String value)Copy the current immutable object by setting a value for theinsertionCodeattribute.ImmutablePdbRemark465LinewithModelNumber(int value)Copy the current immutable object by setting a value for themodelNumberattribute.ImmutablePdbRemark465LinewithResidueName(String value)Copy the current immutable object by setting a value for theresidueNameattribute.ImmutablePdbRemark465LinewithResidueNumber(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, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface pl.poznan.put.pdb.ChainNumberICode
compareTo
-
-
-
-
Method Detail
-
modelNumber
public int modelNumber()
- Specified by:
modelNumberin classPdbRemark465Line- Returns:
- The value of the
modelNumberattribute
-
residueName
public String residueName()
- Specified by:
residueNamein classPdbRemark465Line- Returns:
- The value of the
residueNameattribute
-
chainIdentifier
public String 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
public String insertionCode()
- Specified by:
insertionCodein interfaceChainNumberICode- Specified by:
insertionCodein classPdbRemark465Line- Returns:
- The value of the
insertionCodeattribute
-
withModelNumber
public final ImmutablePdbRemark465Line withModelNumber(int value)
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
public final ImmutablePdbRemark465Line withResidueName(String value)
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
public final ImmutablePdbRemark465Line withChainIdentifier(String value)
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
public final ImmutablePdbRemark465Line withResidueNumber(int value)
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
public final ImmutablePdbRemark465Line withInsertionCode(String value)
Copy the current immutable object by setting a value for theinsertionCodeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for insertionCode- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)
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, 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
public static ImmutablePdbRemark465Line copyOf(PdbRemark465Line instance)
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
public static ImmutablePdbRemark465Line.Builder builder()
Creates a builder forImmutablePdbRemark465Line.ImmutablePdbRemark465Line.builder() .modelNumber(int) // requiredmodelNumber.residueName(String) // requiredresidueName.chainIdentifier(String) // requiredchainIdentifier.residueNumber(int) // requiredresidueNumber.insertionCode(String) // requiredinsertionCode.build();- Returns:
- A new ImmutablePdbRemark465Line builder
-
-