Record Class GrammarDecisionCodec.DecodedTree
java.lang.Object
java.lang.Record
com.knezevic.edaf.v3.repr.grammar.encoding.GrammarDecisionCodec.DecodedTree
- Enclosing class:
GrammarDecisionCodec
public static record GrammarDecisionCodec.DecodedTree(DerivationTree tree, List<Integer> decisionVector, List<Double> ercValues, int consumedBits)
extends Record
Decode result bundle.
-
Constructor Summary
ConstructorsConstructorDescriptionDecodedTree(DerivationTree tree, List<Integer> decisionVector, List<Double> ercValues, int consumedBits) Creates an instance of aDecodedTreerecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theconsumedBitsrecord component.Returns the value of thedecisionVectorrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theercValuesrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.tree()Returns the value of thetreerecord component.
-
Constructor Details
-
DecodedTree
public DecodedTree(DerivationTree tree, List<Integer> decisionVector, List<Double> ercValues, int consumedBits) Creates an instance of aDecodedTreerecord class.- Parameters:
tree- the value for thetreerecord componentdecisionVector- the value for thedecisionVectorrecord componentercValues- the value for theercValuesrecord componentconsumedBits- the value for theconsumedBitsrecord 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. -
tree
Returns the value of thetreerecord component.- Returns:
- the value of the
treerecord component
-
decisionVector
-
ercValues
-
consumedBits
public int consumedBits()Returns the value of theconsumedBitsrecord component.- Returns:
- the value of the
consumedBitsrecord component
-