Record Class DefaultResourceActions.CopyImpl.CopyContext
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.gateway.config.actions.DefaultResourceActions.CopyImpl.CopyContext
- Enclosing class:
- DefaultResourceActions.CopyImpl
public static record DefaultResourceActions.CopyImpl.CopyContext(String oldName, String oldCollection, Resource resource, ResourceCodec<?> codec)
extends Record
Used internally by the Copy implementation for validation. This is mostly to marshall the resources using
the correct codec along with additional details. The
DefaultResourceActions.CopyResource 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
Copy into the generic typed world of validation.-
Constructor Summary
ConstructorsConstructorDescriptionCopyContext(String oldName, String oldCollection, Resource resource, ResourceCodec<?> codec) Creates an instance of aCopyContextrecord 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.Returns the value of theoldCollectionrecord component.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
-
CopyContext
Creates an instance of aCopyContextrecord class.- Parameters:
oldName- the value for theoldNamerecord componentoldCollection- the value for theoldCollectionrecord 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
-
oldCollection
Returns the value of theoldCollectionrecord component.- Returns:
- the value of the
oldCollectionrecord 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
-