Record Class SplitResult
java.lang.Object
java.lang.Record
cloud.opencode.base.xml.splitter.SplitResult
- Record Components:
index- the zero-based index of this fragment | 此片段的基于零的索引fragment- the extracted XML document fragment | 提取的 XML 文档片段
Split Result - Holds an indexed XML fragment from a split operation
拆分结果 - 保存拆分操作中带索引的 XML 片段
This record pairs a zero-based index with the corresponding XML document fragment
extracted by XmlSplitter.
此记录将基于零的索引与 XmlSplitter 提取的相应 XML 文档片段配对。
- Since:
- JDK 25, opencode-base-xml V1.0.3
- Author:
- Leon Soo www.LeonSoo.com
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSplitResult(int index, XmlDocument fragment) Creates an instance of aSplitResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.fragment()Returns the value of thefragmentrecord component.final inthashCode()Returns a hash code value for this object.intindex()Returns the value of theindexrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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. -
index
-
fragment
-