Record Class DefaultResourceActions.RenameImpl.RenameContext
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.gateway.config.actions.DefaultResourceActions.RenameImpl.RenameContext
- Enclosing class:
- DefaultResourceActions.RenameImpl
public static record DefaultResourceActions.RenameImpl.RenameContext(String oldName, Resource resource, ResourceCodec<?> codec)
extends Record
Used internally by the Rename implementation for validation. This is mostly to marshall the resources using
the correct codec along with additional details. The
DefaultResourceActions.RenameResource record is the main way any
of this is interacted with. This primarily serves as a bridge to get from the non-generic type world of
Rename into the generic typed world of validation.-
Constructor Summary
ConstructorsConstructorDescriptionRenameContext(String oldName, Resource resource, ResourceCodec<?> codec) Creates an instance of aRenameContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncodec()Returns the value of thecodecrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.oldName()Returns the value of theoldNamerecord component.resource()Returns the value of theresourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RenameContext
Creates an instance of aRenameContextrecord class.- Parameters:
oldName- the value for theoldNamerecord componentresource- the value for theresourcerecord componentcodec- the value for thecodecrecord 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). -
oldName
Returns the value of theoldNamerecord component.- Returns:
- the value of the
oldNamerecord component
-
resource
Returns the value of theresourcerecord component.- Returns:
- the value of the
resourcerecord component
-
codec
Returns the value of thecodecrecord component.- Returns:
- the value of the
codecrecord component
-