Record Class PropagationRejectedResult
java.lang.Object
java.lang.Record
tools.refinery.store.dse.propagation.PropagationRejectedResult
- All Implemented Interfaces:
PropagationResult
public record PropagationRejectedResult(Object reason, String message, boolean fatal)
extends Record
implements PropagationResult
-
Field Summary
Fields inherited from interface tools.refinery.store.dse.propagation.PropagationResult
PROPAGATED, UNCHANGED
-
Constructor Summary
ConstructorDescriptionPropagationRejectedResult
(Object reason, String message) PropagationRejectedResult
(Object reason, String message, boolean fatal) Creates an instance of aPropagationRejectedResult
record class. -
Method Summary
Modifier and TypeMethodDescriptionandThen
(PropagationResult next) final boolean
Indicates whether some other object is "equal to" this one.boolean
fatal()
Returns the value of thefatal
record component.final int
hashCode()
Returns a hash code value for this object.boolean
boolean
message()
Returns the value of themessage
record component.reason()
Returns the value of thereason
record component.void
final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
PropagationRejectedResult
-
PropagationRejectedResult
Creates an instance of aPropagationRejectedResult
record class.- Parameters:
reason
- the value for thereason
record componentmessage
- the value for themessage
record componentfatal
- the value for thefatal
record component
-
-
Method Details
-
andThen
- Specified by:
andThen
in interfacePropagationResult
-
isRejected
public boolean isRejected()- Specified by:
isRejected
in interfacePropagationResult
-
throwIfRejected
public void throwIfRejected()- Specified by:
throwIfRejected
in interfacePropagationResult
-
formatMessage
-
isChanged
public boolean isChanged()- Specified by:
isChanged
in interfacePropagationResult
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
reason
Returns the value of thereason
record component.- Returns:
- the value of the
reason
record component
-
message
Returns the value of themessage
record component.- Returns:
- the value of the
message
record component
-
fatal
public boolean fatal()Returns the value of thefatal
record component.- Returns:
- the value of the
fatal
record component
-