Record Class ScmLaneFilterQuorum
java.lang.Object
java.lang.Record
org.impulsegraph.compiler.ast.ScmLaneFilterQuorum
- All Implemented Interfaces:
ImpScmNode
public record ScmLaneFilterQuorum(int minQuorum, boolean invert)
extends Record
implements ImpScmNode
Multi-lane popcount quorum filter step (opcode
0xC6 OP_LANE_FILTER_QUORUM).-
Constructor Summary
ConstructorsConstructorDescriptionScmLaneFilterQuorum(int minQuorum, boolean invert) Creates an instance of aScmLaneFilterQuorumrecord class. -
Method Summary
Modifier and TypeMethodDescription<R> Raccept(ImpScmVisitor<R> visitor) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleaninvert()Returns the value of theinvertrecord component.intmaskReg()intReturns the value of theminQuorumrecord component.static ScmLaneFilterQuorumof(int minQuorum) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScmLaneFilterQuorum
public ScmLaneFilterQuorum(int minQuorum, boolean invert) Creates an instance of aScmLaneFilterQuorumrecord class.- Parameters:
minQuorum- the value for theminQuorumrecord componentinvert- the value for theinvertrecord component
-
-
Method Details
-
of
-
maskReg
public int maskReg() -
toScmString
- Specified by:
toScmStringin interfaceImpScmNode
-
accept
- Specified by:
acceptin interfaceImpScmNode
-
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. -
minQuorum
public int minQuorum()Returns the value of theminQuorumrecord component.- Returns:
- the value of the
minQuorumrecord component
-
invert
public boolean invert()Returns the value of theinvertrecord component.- Returns:
- the value of the
invertrecord component
-