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 operation
- event- 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 SummaryConstructorsConstructorDescriptionSendingContext(@NotNull ExpressionProfile expressionProfile, @Nullable Event event, @NotNull Task task) Creates an instance of aSendingContextrecord class.
- 
Method SummaryModifier 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- 
SendingContextpublic SendingContext(@NotNull @NotNull ExpressionProfile expressionProfile, @Nullable @Nullable Event event, @NotNull @NotNull Task task) Creates an instance of aSendingContextrecord class.- Parameters:
- expressionProfile- the value for the- expressionProfilerecord component
- event- the value for the- eventrecord component
- task- the value for the- taskrecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
expressionProfileReturns the value of theexpressionProfilerecord component.- Returns:
- the value of the expressionProfilerecord component
 
- 
eventReturns the value of theeventrecord component.- Returns:
- the value of the eventrecord component
 
- 
taskReturns the value of thetaskrecord component.- Returns:
- the value of the taskrecord component
 
 
-