Package com.vaadin.copilot.ide
Record Class IDEHeartbeatResponse
java.lang.Object
java.lang.Record
com.vaadin.copilot.ide.IDEHeartbeatResponse
- Record Components:
hasCompilationError- a Boolean indicating whether there is a compilation error; may benullif the status is unknownfilesContainCompilationErrors- a list of file paths that currently contain compilation errors; may benullor empty if no errors are present
public record IDEHeartbeatResponse(Boolean hasCompilationError, List<String> filesContainCompilationErrors)
extends Record
Represents the response payload from the IDE heartbeat mechanism.
This response provides information about the current compilation status of the project and optionally a list of files that contain compilation errors. It is used to communicate IDE state back to development tools for status monitoring or UI feedback.
-
Constructor Summary
ConstructorsConstructorDescriptionIDEHeartbeatResponse(Boolean hasCompilationError, List<String> filesContainCompilationErrors) Creates an instance of aIDEHeartbeatResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefilesContainCompilationErrorsrecord component.Returns the value of thehasCompilationErrorrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IDEHeartbeatResponse
public IDEHeartbeatResponse(Boolean hasCompilationError, List<String> filesContainCompilationErrors) Creates an instance of aIDEHeartbeatResponserecord class.- Parameters:
hasCompilationError- the value for thehasCompilationErrorrecord componentfilesContainCompilationErrors- the value for thefilesContainCompilationErrorsrecord 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). -
hasCompilationError
Returns the value of thehasCompilationErrorrecord component.- Returns:
- the value of the
hasCompilationErrorrecord component
-
filesContainCompilationErrors
Returns the value of thefilesContainCompilationErrorsrecord component.- Returns:
- the value of the
filesContainCompilationErrorsrecord component
-