Package dev.mintychochip.mint
Record Class TransactionContext.PluginActor
java.lang.Object
java.lang.Record
dev.mintychochip.mint.TransactionContext.PluginActor
- Record Components:
pluginName- the plugin displayName that initiated the transaction
- All Implemented Interfaces:
TransactionContext.Actor
- Enclosing interface:
TransactionContext
@AvailableSince("1.0")
public static record TransactionContext.PluginActor(String pluginName)
extends Record
implements TransactionContext.Actor
Actor implementation for plugin-initiated transactions.
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.mintychochip.mint.TransactionContext.Actor
TransactionContext.Actor.Type -
Constructor Summary
ConstructorsConstructorDescriptionPluginActor(String pluginName) Creates an instance of aPluginActorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getName()Gets the display displayName of this actor.getType()Gets the classification of this actor.final inthashCode()Returns a hash code value for this object.Returns the value of thepluginNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PluginActor
Creates an instance of aPluginActorrecord class.- Parameters:
pluginName- the value for thepluginNamerecord component
-
-
Method Details
-
getType
Description copied from interface:TransactionContext.ActorGets the classification of this actor.- Specified by:
getTypein interfaceTransactionContext.Actor- Returns:
- actor type
-
getName
Description copied from interface:TransactionContext.ActorGets the display displayName of this actor.- Specified by:
getNamein interfaceTransactionContext.Actor- Returns:
- actor displayName
-
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). -
pluginName
Returns the value of thepluginNamerecord component.- Returns:
- the value of the
pluginNamerecord component
-