Record Class BuildLogsExtension.SearchLogResponse
java.lang.Object
java.lang.Record
io.jenkins.plugins.mcp.server.extensions.BuildLogsExtension.SearchLogResponse
- Enclosing class:
- BuildLogsExtension
public static record BuildLogsExtension.SearchLogResponse(String pattern, boolean useRegex, boolean ignoreCase, int matchCount, boolean hasMoreMatches, long totalLines, List<BuildLogsExtension.SearchMatch> matches)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSearchLogResponse(String pattern, boolean useRegex, boolean ignoreCase, int matchCount, boolean hasMoreMatches, long totalLines, List<BuildLogsExtension.SearchMatch> matches) Creates an instance of aSearchLogResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thehasMoreMatchesrecord component.booleanReturns the value of theignoreCaserecord component.intReturns the value of thematchCountrecord component.matches()Returns the value of thematchesrecord component.pattern()Returns the value of thepatternrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalLinesrecord component.booleanuseRegex()Returns the value of theuseRegexrecord component.
-
Constructor Details
-
SearchLogResponse
public SearchLogResponse(String pattern, boolean useRegex, boolean ignoreCase, int matchCount, boolean hasMoreMatches, long totalLines, List<BuildLogsExtension.SearchMatch> matches) Creates an instance of aSearchLogResponserecord class.- Parameters:
pattern- the value for thepatternrecord componentuseRegex- the value for theuseRegexrecord componentignoreCase- the value for theignoreCaserecord componentmatchCount- the value for thematchCountrecord componenthasMoreMatches- the value for thehasMoreMatchesrecord componenttotalLines- the value for thetotalLinesrecord componentmatches- the value for thematchesrecord 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 '=='. -
pattern
Returns the value of thepatternrecord component.- Returns:
- the value of the
patternrecord component
-
useRegex
public boolean useRegex()Returns the value of theuseRegexrecord component.- Returns:
- the value of the
useRegexrecord component
-
ignoreCase
public boolean ignoreCase()Returns the value of theignoreCaserecord component.- Returns:
- the value of the
ignoreCaserecord component
-
matchCount
public int matchCount()Returns the value of thematchCountrecord component.- Returns:
- the value of the
matchCountrecord component
-
hasMoreMatches
public boolean hasMoreMatches()Returns the value of thehasMoreMatchesrecord component.- Returns:
- the value of the
hasMoreMatchesrecord component
-
totalLines
public long totalLines()Returns the value of thetotalLinesrecord component.- Returns:
- the value of the
totalLinesrecord component
-
matches
Returns the value of thematchesrecord component.- Returns:
- the value of the
matchesrecord component
-