Record Class Difference<K,V>
java.lang.Object
java.lang.Record
com.sure.tool.collection.Difference<K,V>
- Type Parameters:
K- 键类型V- 值类型- Record Components:
onlyLeft- 只在左 Map 出现的键值对onlyRight- 只在右 Map 出现的键值对valueDiffers- 左右共有但值不同的键值对(值为左 Map 的值)
-
Constructor Summary
Constructors -
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.onlyLeft()只在左 Map 出现的键值对(不可变视图)。只在右 Map 出现的键值对(不可变视图)。final StringtoString()Returns a string representation of this record class.左右共有但值不同的键值对(值为左 Map 的值,不可变视图)。
-
Constructor Details
-
Difference
-
-
Method Details
-
onlyLeft
-
onlyRight
-
valueDiffers
-
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).
-