Record Class TreeDiffResult.ModifiedNode<T>
java.lang.Object
java.lang.Record
cloud.opencode.base.tree.diff.TreeDiffResult.ModifiedNode<T>
- Type Parameters:
T- the node type | 节点类型- Record Components:
oldNode- the old node | 旧节点newNode- the new node | 新节点
- Enclosing class:
TreeDiffResult<T>
Modified Node
修改的节点
- Since:
- JDK 25, opencode-base-tree V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Constructor Summary
ConstructorsConstructorDescriptionModifiedNode(T oldNode, T newNode) Creates an instance of aModifiedNoderecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.newNode()Returns the value of thenewNoderecord component.oldNode()Returns the value of theoldNoderecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModifiedNode
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
oldNode
-
newNode
-