Record Class LocalResourceChange
java.lang.Object
java.lang.Record
com.cloudforge.core.local.LocalResourceChange
-
Constructor Summary
ConstructorsConstructorDescriptionLocalResourceChange(String action, String logicalResourceId, String resourceType, String replacement) Creates an instance of aLocalResourceChangerecord class. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelogicalResourceIdrecord component.Returns the value of thereplacementrecord component.Returns the value of theresourceTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LocalResourceChange
public LocalResourceChange(String action, String logicalResourceId, String resourceType, String replacement) Creates an instance of aLocalResourceChangerecord class.- Parameters:
action- the value for theactionrecord componentlogicalResourceId- the value for thelogicalResourceIdrecord componentresourceType- the value for theresourceTyperecord componentreplacement- the value for thereplacementrecord component
-
-
Method Details
-
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). -
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-
logicalResourceId
Returns the value of thelogicalResourceIdrecord component.- Returns:
- the value of the
logicalResourceIdrecord component
-
resourceType
Returns the value of theresourceTyperecord component.- Returns:
- the value of the
resourceTyperecord component
-
replacement
Returns the value of thereplacementrecord component.- Returns:
- the value of the
replacementrecord component
-