Package tech.catheu.jnotebook.jshell
Record Class EvalResult
java.lang.Object
java.lang.Record
tech.catheu.jnotebook.jshell.EvalResult
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thediagnosticsrecord component.final booleanIndicates whether some other object is "equal to" this one.err()Returns the value of theerrrecord component.events()Returns the value of theeventsrecord component.final inthashCode()Returns a hash code value for this object.out()Returns the value of theoutrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theunresolvedDepsrecord component.
-
Constructor Details
-
EvalResult
public EvalResult(List<SnippetEvent> events, String out, String err, List<List<Diag>> diagnostics, List<List<String>> unresolvedDeps) Creates an instance of aEvalResultrecord class.- Parameters:
events- the value for theeventsrecord componentout- the value for theoutrecord componenterr- the value for theerrrecord componentdiagnostics- the value for thediagnosticsrecord componentunresolvedDeps- the value for theunresolvedDepsrecord component
-
-
Method Details
-
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). -
events
Returns the value of theeventsrecord component.- Returns:
- the value of the
eventsrecord component
-
out
Returns the value of theoutrecord component.- Returns:
- the value of the
outrecord component
-
err
Returns the value of theerrrecord component.- Returns:
- the value of the
errrecord component
-
diagnostics
Returns the value of thediagnosticsrecord component.- Returns:
- the value of the
diagnosticsrecord component
-
unresolvedDeps
Returns the value of theunresolvedDepsrecord component.- Returns:
- the value of the
unresolvedDepsrecord component
-