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 ofPdbModresLine.Use the builder to create immutable instances:
ImmutablePdbModresLine.builder(). Use the static factory method to create immutable instances:ImmutablePdbModresLine.of().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutablePdbModresLine.BuilderBuilds instances of typeImmutablePdbModresLine.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutablePdbModresLine.Builderbuilder()Creates a builder forImmutablePdbModresLine.StringchainIdentifier()Stringcomment()static ImmutablePdbModresLinecopyOf(PdbModresLine instance)Creates an immutable copy of aPdbModresLinevalue.booleanequals(Object another)This 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.StringidCode()StringinsertionCode()static ImmutablePdbModresLineof(String idCode, String residueName, String chainIdentifier, int residueNumber, String insertionCode, String standardResidueName, String comment)Construct a new immutablePdbModresLineinstance.StringresidueName()intresidueNumber()StringstandardResidueName()ImmutablePdbModresLinewithChainIdentifier(String value)Copy the current immutable object by setting a value for thechainIdentifierattribute.ImmutablePdbModresLinewithComment(String value)Copy the current immutable object by setting a value for thecommentattribute.ImmutablePdbModresLinewithIdCode(String value)Copy the current immutable object by setting a value for theidCodeattribute.ImmutablePdbModresLinewithInsertionCode(String value)Copy the current immutable object by setting a value for theinsertionCodeattribute.ImmutablePdbModresLinewithResidueName(String value)Copy the current immutable object by setting a value for theresidueNameattribute.ImmutablePdbModresLinewithResidueNumber(int value)Copy the current immutable object by setting a value for theresidueNumberattribute.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, 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
-
idCode
public String idCode()
- Specified by:
idCodein classPdbModresLine- Returns:
- The value of the
idCodeattribute
-
residueName
public String residueName()
- Specified by:
residueNamein classPdbModresLine- Returns:
- The value of the
residueNameattribute
-
chainIdentifier
public String 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
public String insertionCode()
- Specified by:
insertionCodein interfaceChainNumberICode- Specified by:
insertionCodein classPdbModresLine- Returns:
- The value of the
insertionCodeattribute
-
standardResidueName
public String standardResidueName()
- Specified by:
standardResidueNamein classPdbModresLine- Returns:
- The value of the
standardResidueNameattribute
-
comment
public String comment()
- Specified by:
commentin classPdbModresLine- Returns:
- The value of the
commentattribute
-
withIdCode
public final ImmutablePdbModresLine withIdCode(String value)
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
public final ImmutablePdbModresLine 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 ImmutablePdbModresLine 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 ImmutablePdbModresLine 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 ImmutablePdbModresLine 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
-
withStandardResidueName
public final ImmutablePdbModresLine withStandardResidueName(String value)
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
public final ImmutablePdbModresLine withComment(String value)
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
public boolean equals(@Nullable Object another)
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, 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
public static ImmutablePdbModresLine copyOf(PdbModresLine instance)
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
public static ImmutablePdbModresLine.Builder builder()
Creates a builder forImmutablePdbModresLine.ImmutablePdbModresLine.builder() .idCode(String) // requiredidCode.residueName(String) // requiredresidueName.chainIdentifier(String) // requiredchainIdentifier.residueNumber(int) // requiredresidueNumber.insertionCode(String) // requiredinsertionCode.standardResidueName(String) // requiredstandardResidueName.comment(String) // requiredcomment.build();- Returns:
- A new ImmutablePdbModresLine builder
-
-