Record Class BuildLogsExtension.BuildLogResponse
java.lang.Object
java.lang.Record
io.jenkins.plugins.mcp.server.extensions.BuildLogsExtension.BuildLogResponse
- Enclosing class:
- BuildLogsExtension
-
Constructor Summary
ConstructorsConstructorDescriptionBuildLogResponse(boolean hasMoreContent, List<String> lines, int totalLines, long startLine, long endLine) Creates an instance of aBuildLogResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongendLine()Returns the value of theendLinerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thehasMoreContentrecord component.lines()Returns the value of thelinesrecord component.longReturns the value of thestartLinerecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalLinesrecord component.
-
Constructor Details
-
BuildLogResponse
public BuildLogResponse(boolean hasMoreContent, List<String> lines, int totalLines, long startLine, long endLine) Creates an instance of aBuildLogResponserecord class.- Parameters:
hasMoreContent- the value for thehasMoreContentrecord componentlines- the value for thelinesrecord componenttotalLines- the value for thetotalLinesrecord componentstartLine- the value for thestartLinerecord componentendLine- the value for theendLinerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
hasMoreContent
public boolean hasMoreContent()Returns the value of thehasMoreContentrecord component.- Returns:
- the value of the
hasMoreContentrecord component
-
lines
Returns the value of thelinesrecord component.- Returns:
- the value of the
linesrecord component
-
totalLines
public int totalLines()Returns the value of thetotalLinesrecord component.- Returns:
- the value of the
totalLinesrecord component
-
startLine
public long startLine()Returns the value of thestartLinerecord component.- Returns:
- the value of the
startLinerecord component
-
endLine
public long endLine()Returns the value of theendLinerecord component.- Returns:
- the value of the
endLinerecord component
-