Package net.minecraft.util
Record Class ProblemReporter.Collector.ProblemTreeNode
java.lang.Object
java.lang.Record
net.minecraft.util.ProblemReporter.Collector.ProblemTreeNode
- Enclosing class:
ProblemReporter.Collector
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 TypeFieldDescriptionThe field for thechildren
record component.private final ProblemReporter.PathElement
The field for theelement
record component.private final List
<ProblemReporter.Problem> The field for theproblems
record component. -
Constructor Summary
ConstructorsConstructorDescriptionProblemTreeNode
(ProblemReporter.PathElement p_422382_) ProblemTreeNode
(ProblemReporter.PathElement element, List<ProblemReporter.Problem> problems, Map<ProblemReporter.PathElement, ProblemReporter.Collector.ProblemTreeNode> children) Creates an instance of aProblemTreeNode
record class. -
Method Summary
Modifier and TypeMethodDescriptionchild
(ProblemReporter.PathElement pElement) children()
Returns the value of thechildren
record component.element()
Returns the value of theelement
record component.final boolean
Indicates whether some other object is "equal to" this one.getLines()
final int
hashCode()
Returns a hash code value for this object.problems()
Returns the value of theproblems
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
element
The field for theelement
record component. -
problems
The field for theproblems
record component. -
children
The field for thechildren
record component.
-
-
Constructor Details
-
ProblemTreeNode
-
ProblemTreeNode
ProblemTreeNode(ProblemReporter.PathElement element, List<ProblemReporter.Problem> problems, Map<ProblemReporter.PathElement, ProblemReporter.Collector.ProblemTreeNode> children) Creates an instance of aProblemTreeNode
record class.- Parameters:
element
- the value for theelement
record componentproblems
- the value for theproblems
record componentchildren
- the value for thechildren
record component
-
-
Method Details
-
child
-
getLines
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 theelement
record component.- Returns:
- the value of the
element
record component
-
problems
Returns the value of theproblems
record component.- Returns:
- the value of the
problems
record component
-
children
Returns the value of thechildren
record component.- Returns:
- the value of the
children
record component
-