Record Class GenomeProvider.Target
java.lang.Object
java.lang.Record
org.episteme.natural.biology.genome.GenomeProvider.Target
- All Implemented Interfaces:
Serializable
- Enclosing interface:
GenomeProvider
public static record GenomeProvider.Target(int position, String spacer, String pam, double score)
extends Record
implements Serializable
- See Also:
-
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.pam()Returns the value of thepamrecord component.intposition()Returns the value of thepositionrecord component.doublescore()Returns the value of thescorerecord component.spacer()Returns the value of thespacerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Target
Creates an instance of aTargetrecord class.- Parameters:
position- the value for thepositionrecord componentspacer- the value for thespacerrecord componentpam- the value for thepamrecord componentscore- the value for thescorerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
position
public int position()Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
spacer
Returns the value of thespacerrecord component.- Returns:
- the value of the
spacerrecord component
-
pam
Returns the value of thepamrecord component.- Returns:
- the value of the
pamrecord component
-
score
public double score()Returns the value of thescorerecord component.- Returns:
- the value of the
scorerecord component
-