Package google.registry.flows.custom
Record Class EntityChanges
java.lang.Object
java.lang.Record
google.registry.flows.custom.EntityChanges
public record EntityChanges(com.google.common.collect.ImmutableSet<ImmutableObject> saves, com.google.common.collect.ImmutableSet<VKey<ImmutableObject>> deletes)
extends Record
A record that encapsulates database entities to both save and delete.
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionEntityChanges
(com.google.common.collect.ImmutableSet<ImmutableObject> saves, com.google.common.collect.ImmutableSet<VKey<ImmutableObject>> deletes) Creates an instance of aEntityChanges
record class. -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.collect.ImmutableSet
<VKey<ImmutableObject>> deletes()
Returns the value of thedeletes
record component.final boolean
Indicates whether some other object is "equal to" this one.com.google.common.collect.ImmutableSet
<VKey<ImmutableObject>> com.google.common.collect.ImmutableSet
<ImmutableObject> getSaves()
final int
hashCode()
Returns a hash code value for this object.static EntityChanges.Builder
com.google.common.collect.ImmutableSet
<ImmutableObject> saves()
Returns the value of thesaves
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
EntityChanges
public EntityChanges(com.google.common.collect.ImmutableSet<ImmutableObject> saves, com.google.common.collect.ImmutableSet<VKey<ImmutableObject>> deletes) Creates an instance of aEntityChanges
record class.- Parameters:
saves
- the value for thesaves
record componentdeletes
- the value for thedeletes
record component
-
-
Method Details
-
getSaves
-
getDeletes
-
newBuilder
-
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)
. -
saves
Returns the value of thesaves
record component.- Returns:
- the value of the
saves
record component
-
deletes
Returns the value of thedeletes
record component.- Returns:
- the value of the
deletes
record component
-