Record Class ProteinFolding.Residue
java.lang.Object
java.lang.Record
org.episteme.natural.biology.ProteinFolding.Residue
- Enclosing class:
ProteinFolding
public static record ProteinFolding.Residue(String symbol, double[] position, ProteinFolding.Structure predicted)
extends Record
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.double[]position()Returns the value of thepositionrecord component.Returns the value of thepredictedrecord component.symbol()Returns the value of thesymbolrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Residue
-
Residue
Creates an instance of aResiduerecord class.- Parameters:
symbol- the value for thesymbolrecord componentposition- the value for thepositionrecord componentpredicted- the value for thepredictedrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
symbol
Returns the value of thesymbolrecord component.- Returns:
- the value of the
symbolrecord component
-
position
public double[] position()Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
predicted
Returns the value of thepredictedrecord component.- Returns:
- the value of the
predictedrecord component
-