Record Class HighlightDelta
java.lang.Object
java.lang.Record
su.nightexpress.excellentclaims.api.highlight.HighlightDelta
@NullMarked
public record HighlightDelta(Set<HighlightPoint> toAdd, Set<HighlightPoint> toRemove)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionHighlightDelta(Set<HighlightPoint> toAdd, Set<HighlightPoint> toRemove) Creates an instance of aHighlightDeltarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanfinal inthashCode()Returns a hash code value for this object.toAdd()Returns the value of thetoAddrecord component.toRemove()Returns the value of thetoRemoverecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HighlightDelta
Creates an instance of aHighlightDeltarecord class.- Parameters:
toAdd- the value for thetoAddrecord componenttoRemove- the value for thetoRemoverecord component
-
-
Method Details
-
hasChanges
public boolean hasChanges() -
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). -
toAdd
Returns the value of thetoAddrecord component.- Returns:
- the value of the
toAddrecord component
-
toRemove
Returns the value of thetoRemoverecord component.- Returns:
- the value of the
toRemoverecord component
-