Record Class ExpressionEvaluationResult
java.lang.Object
java.lang.Record
com.xebialabs.xlrelease.osgi.api.el.ExpressionEvaluationResult
- Record Components:
passed- whether the expression evaluated totrueerror- failure text when evaluation did not complete;nullon success
Outcome of one
ExpressionLanguageApi.evaluate(java.lang.String, java.lang.String) call. DTO only: no Spring types and no
domain types, so OSGi bundles can consume it from the exported osgi.api.el package.-
Constructor Summary
ConstructorsConstructorDescriptionExpressionEvaluationResult(boolean passed, String error) Creates an instance of aExpressionEvaluationResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.static ExpressionEvaluationResultbooleanhasError()final inthashCode()Returns a hash code value for this object.static ExpressionEvaluationResultok(boolean passed) booleanpassed()Returns the value of thepassedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
ok
-
failed
-
hasError
public boolean hasError() -
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 '=='. -
passed
public boolean passed()Returns the value of thepassedrecord component.- Returns:
- the value of the
passedrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-