Package google.registry.flows.custom
Record Class DomainCreateFlowCustomLogic.BeforeSaveParameters
java.lang.Object
java.lang.Record
google.registry.flows.custom.DomainCreateFlowCustomLogic.BeforeSaveParameters
- Record Components:
newDomain
- The newDomain
entity that is going to be persisted at the end of the transaction.historyEntry
- The newHistoryEntry
entity for the domain's creation that is going to be persisted at the end of the transaction.entityChanges
- The collection ofEntityChanges
(including new entities and those to delete) that will be persisted at the end of the transaction.Note that the new domain and history entry are also included as saves in this collection, and are separated out above solely for convenience, as they are most likely to need to be changed. Removing them from the collection will cause them not to be saved, which is most likely not what you intended.
years
- The number of years that the domain name will be registered for (typically 1).
- Enclosing class:
DomainCreateFlowCustomLogic
public static record DomainCreateFlowCustomLogic.BeforeSaveParameters(Domain newDomain, HistoryEntry historyEntry, EntityChanges entityChanges, int years)
extends Record
A record to encapsulate parameters for a call to
DomainCreateFlowCustomLogic.beforeSave(google.registry.flows.custom.DomainCreateFlowCustomLogic.BeforeSaveParameters)
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Builder forDomainCreateFlowCustomLogic.BeforeSaveParameters
. -
Constructor Summary
ConstructorDescriptionBeforeSaveParameters
(Domain newDomain, HistoryEntry historyEntry, EntityChanges entityChanges, int years) Creates an instance of aBeforeSaveParameters
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theentityChanges
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thehistoryEntry
record component.Returns the value of thenewDomain
record component.final String
toString()
Returns a string representation of this record class.int
years()
Returns the value of theyears
record component.
-
Constructor Details
-
BeforeSaveParameters
public BeforeSaveParameters(Domain newDomain, HistoryEntry historyEntry, EntityChanges entityChanges, int years) Creates an instance of aBeforeSaveParameters
record class.- Parameters:
newDomain
- the value for thenewDomain
record componenthistoryEntry
- the value for thehistoryEntry
record componententityChanges
- the value for theentityChanges
record componentyears
- the value for theyears
record component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
newDomain
Returns the value of thenewDomain
record component.- Returns:
- the value of the
newDomain
record component
-
historyEntry
Returns the value of thehistoryEntry
record component.- Returns:
- the value of the
historyEntry
record component
-
entityChanges
Returns the value of theentityChanges
record component.- Returns:
- the value of the
entityChanges
record component
-
years
public int years()Returns the value of theyears
record component.- Returns:
- the value of the
years
record component
-