Record Class WorkingCopierResult<T>
java.lang.Object
java.lang.Record
software.xdev.spring.data.eclipse.store.repository.support.copier.working.WorkingCopierResult<T>
- Type Parameters:
T- type of the entity that was merged back- Record Components:
originalEntities- that must get storednonEntitiesToStore- that must get stored
public record WorkingCopierResult<T>(Set<T> originalEntities, Set<Object> nonEntitiesToStore)
extends Record
Holds the result data from the working copier.
-
Constructor Summary
ConstructorsConstructorDescriptionWorkingCopierResult(Set<T> originalEntities, Set<Object> nonEntitiesToStore) Creates an instance of aWorkingCopierResultrecord 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.Returns the value of thenonEntitiesToStorerecord component.Returns the value of theoriginalEntitiesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WorkingCopierResult
Creates an instance of aWorkingCopierResultrecord class.- Parameters:
originalEntities- the value for theoriginalEntitiesrecord componentnonEntitiesToStore- the value for thenonEntitiesToStorerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
originalEntities
Returns the value of theoriginalEntitiesrecord component.- Returns:
- the value of the
originalEntitiesrecord component
-
nonEntitiesToStore
Returns the value of thenonEntitiesToStorerecord component.- Returns:
- the value of the
nonEntitiesToStorerecord component
-