Record Class VmBranchCoverageRecorder.SiteKey
java.lang.Object
java.lang.Record
org.impulsegraph.vm.VmBranchCoverageRecorder.SiteKey
- All Implemented Interfaces:
Comparable<VmBranchCoverageRecorder.SiteKey>
- Enclosing class:
VmBranchCoverageRecorder
public static record VmBranchCoverageRecorder.SiteKey(int pc, int opcode, int siteId)
extends Record
implements Comparable<VmBranchCoverageRecorder.SiteKey>
-
Constructor Summary
ConstructorsConstructorDescriptionSiteKey(int pc, int opcode, int siteId) Creates an instance of aSiteKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intopcode()Returns the value of theopcoderecord component.intpc()Returns the value of thepcrecord component.intsiteId()Returns the value of thesiteIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SiteKey
public SiteKey(int pc, int opcode, int siteId) Creates an instance of aSiteKeyrecord class.- Parameters:
pc- the value for thepcrecord componentopcode- the value for theopcoderecord componentsiteId- the value for thesiteIdrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<VmBranchCoverageRecorder.SiteKey>
-
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 with thecomparemethod from their corresponding wrapper classes. -
pc
public int pc()Returns the value of thepcrecord component.- Returns:
- the value of the
pcrecord component
-
opcode
public int opcode()Returns the value of theopcoderecord component.- Returns:
- the value of the
opcoderecord component
-
siteId
public int siteId()Returns the value of thesiteIdrecord component.- Returns:
- the value of the
siteIdrecord component
-