Record Class SendingContext
java.lang.Object
java.lang.Record
com.evolveum.midpoint.notifications.api.transports.SendingContext
- Record Components:
expressionProfile- profile to be used when evaluating expressions during the operationevent- conceptually, it doesn't much belong here - TODO review
@Experimental
public record SendingContext(@NotNull ExpressionProfile expressionProfile, @Nullable Event event, @NotNull Task task)
extends Record
Contextual information related to sending of a message.
-
Constructor Summary
ConstructorsConstructorDescriptionSendingContext(@NotNull ExpressionProfile expressionProfile, @Nullable Event event, @NotNull Task task) Creates an instance of aSendingContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@Nullable Eventevent()Returns the value of theeventrecord component.@NotNull ExpressionProfileReturns the value of theexpressionProfilerecord component.final inthashCode()Returns a hash code value for this object.@NotNull Tasktask()Returns the value of thetaskrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SendingContext
public SendingContext(@NotNull @NotNull ExpressionProfile expressionProfile, @Nullable @Nullable Event event, @NotNull @NotNull Task task) Creates an instance of aSendingContextrecord class.- Parameters:
expressionProfile- the value for theexpressionProfilerecord componentevent- the value for theeventrecord componenttask- the value for thetaskrecord 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). -
expressionProfile
Returns the value of theexpressionProfilerecord component.- Returns:
- the value of the
expressionProfilerecord component
-
event
Returns the value of theeventrecord component.- Returns:
- the value of the
eventrecord component
-
task
Returns the value of thetaskrecord component.- Returns:
- the value of the
taskrecord component
-