Record Class OperationResult
java.lang.Object
java.lang.Record
com.ticxo.modelengine.api.model.operation.OperationResult
public record OperationResult(BaseEntity<?> baseEntity, ModeledEntity modeledEntity, ActiveModel model, Throwable exception)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionOperationResult(BaseEntity<?> baseEntity, ModeledEntity modeledEntity, ActiveModel model, Throwable exception) Creates an instance of aOperationResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionBaseEntity<?>Returns the value of thebaseEntityrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexceptionrecord component.final inthashCode()Returns a hash code value for this object.booleanmodel()Returns the value of themodelrecord component.Returns the value of themodeledEntityrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OperationResult
public OperationResult(BaseEntity<?> baseEntity, ModeledEntity modeledEntity, ActiveModel model, Throwable exception) Creates an instance of aOperationResultrecord class.- Parameters:
baseEntity- the value for thebaseEntityrecord componentmodeledEntity- the value for themodeledEntityrecord componentmodel- the value for themodelrecord componentexception- the value for theexceptionrecord component
-
-
Method Details
-
isSuccessful
public boolean isSuccessful() -
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). -
baseEntity
Returns the value of thebaseEntityrecord component.- Returns:
- the value of the
baseEntityrecord component
-
modeledEntity
Returns the value of themodeledEntityrecord component.- Returns:
- the value of the
modeledEntityrecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
exception
Returns the value of theexceptionrecord component.- Returns:
- the value of the
exceptionrecord component
-