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
ConstructorsConstructorDescriptionPropagationRejectedResult(Object reason, String message) PropagationRejectedResult(Object reason, String message, boolean fatal) Creates an instance of aPropagationRejectedResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionandThen(PropagationResult next) final booleanIndicates whether some other object is "equal to" this one.booleanfatal()Returns the value of thefatalrecord component.final inthashCode()Returns a hash code value for this object.booleanbooleanmessage()Returns the value of themessagerecord component.reason()Returns the value of thereasonrecord component.voidfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PropagationRejectedResult
-
PropagationRejectedResult
Creates an instance of aPropagationRejectedResultrecord class.- Parameters:
reason- the value for thereasonrecord componentmessage- the value for themessagerecord componentfatal- the value for thefatalrecord component
-
-
Method Details
-
andThen
- Specified by:
andThenin interfacePropagationResult
-
isRejected
public boolean isRejected()- Specified by:
isRejectedin interfacePropagationResult
-
throwIfRejected
public void throwIfRejected()- Specified by:
throwIfRejectedin interfacePropagationResult
-
formatMessage
-
isChanged
public boolean isChanged()- Specified by:
isChangedin 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 thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
fatal
public boolean fatal()Returns the value of thefatalrecord component.- Returns:
- the value of the
fatalrecord component
-