Record Class ProblemReporter.Collector.ProblemTreeNode
java.lang.Object
java.lang.Record
net.minecraft.util.ProblemReporter.Collector.ProblemTreeNode
- Enclosing class:
ProblemReporter.Collector
private static record ProblemReporter.Collector.ProblemTreeNode(ProblemReporter.PathElement element, List<ProblemReporter.Problem> problems, Map<ProblemReporter.PathElement, ProblemReporter.Collector.ProblemTreeNode> children)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<ProblemReporter.PathElement, ProblemReporter.Collector.ProblemTreeNode> The field for thechildrenrecord component.private final ProblemReporter.PathElementThe field for theelementrecord component.private final List<ProblemReporter.Problem> The field for theproblemsrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionProblemTreeNode(ProblemReporter.PathElement pathElement) privateProblemTreeNode(ProblemReporter.PathElement element, List<ProblemReporter.Problem> problems, Map<ProblemReporter.PathElement, ProblemReporter.Collector.ProblemTreeNode> children) Creates an instance of aProblemTreeNoderecord class. -
Method Summary
Modifier and TypeMethodDescriptionchildren()Returns the value of thechildrenrecord component.element()Returns the value of theelementrecord component.final booleanIndicates whether some other object is "equal to" this one.getLines()final inthashCode()Returns a hash code value for this object.problems()Returns the value of theproblemsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
element
The field for theelementrecord component. -
problems
The field for theproblemsrecord component. -
children
The field for thechildrenrecord component.
-
-
Constructor Details
-
ProblemTreeNode
-
ProblemTreeNode
private ProblemTreeNode(ProblemReporter.PathElement element, List<ProblemReporter.Problem> problems, Map<ProblemReporter.PathElement, ProblemReporter.Collector.ProblemTreeNode> children) Creates an instance of aProblemTreeNoderecord class.- Parameters:
element- the value for theelementrecord componentproblems- the value for theproblemsrecord componentchildren- the value for thechildrenrecord component
-
-
Method Details
-
child
-
getLines
-
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). -
element
Returns the value of theelementrecord component.- Returns:
- the value of the
elementrecord component
-
problems
Returns the value of theproblemsrecord component.- Returns:
- the value of the
problemsrecord component
-
children
Returns the value of thechildrenrecord component.- Returns:
- the value of the
childrenrecord component
-