Record Class BeanDiff.Result
java.lang.Object
java.lang.Record
cloud.opencode.base.reflect.bean.BeanDiff.Result
- Record Components:
changes- an ordered map of field-name toBeanDiff.Change| 字段名到BeanDiff.Change的有序映射
- Enclosing class:
BeanDiff
The result of a diff operation, containing all detected field changes.
差异操作的结果,包含所有检测到的字段变更。
- Since:
- JDK 25, opencode-base-reflect V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Constructor Summary
ConstructorsConstructorDescriptionResult(Map<String, BeanDiff.Change> changes) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionchanges()Returns the value of thechangesrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanfinal inthashCode()Returns a hash code value for this object.intsize()toString()Returns a string representation of this record class.
-
Constructor Details
-
Result
Creates an instance of aResultrecord class.- Parameters:
changes- the value for thechangesrecord component
-
-
Method Details
-
hasChanges
public boolean hasChanges() -
get
-
size
public int size() -
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). -
changes
-