Record Class AgentProblemPage
java.lang.Object
java.lang.Record
io.fluxzero.devserver.AgentProblemPage
public record AgentProblemPage(AgentCursor cursor, List<DevProblem> problems, int activeProblemCount, boolean truncated)
extends Record
Bounded snapshot of currently active problems.
-
Constructor Summary
ConstructorsConstructorDescriptionAgentProblemPage(AgentCursor cursor, List<DevProblem> problems, int activeProblemCount, boolean truncated) Creates an instance of aAgentProblemPagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theactiveProblemCountrecord component.cursor()Returns the value of thecursorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.problems()Returns the value of theproblemsrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thetruncatedrecord component.
-
Constructor Details
-
AgentProblemPage
public AgentProblemPage(AgentCursor cursor, List<DevProblem> problems, int activeProblemCount, boolean truncated) Creates an instance of aAgentProblemPagerecord class.- Parameters:
cursor- the value for thecursorrecord componentproblems- the value for theproblemsrecord componentactiveProblemCount- the value for theactiveProblemCountrecord componenttruncated- the value for thetruncatedrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
cursor
Returns the value of thecursorrecord component.- Returns:
- the value of the
cursorrecord component
-
problems
Returns the value of theproblemsrecord component.- Returns:
- the value of the
problemsrecord component
-
activeProblemCount
public int activeProblemCount()Returns the value of theactiveProblemCountrecord component.- Returns:
- the value of the
activeProblemCountrecord component
-
truncated
public boolean truncated()Returns the value of thetruncatedrecord component.- Returns:
- the value of the
truncatedrecord component
-