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

    Constructors
    Constructor
    Description
    SearchLogResponse(String pattern, boolean useRegex, boolean ignoreCase, int matchCount, boolean hasMoreMatches, long totalLines, List<BuildLogsExtension.SearchMatch> matches)
    Creates an instance of a SearchLogResponse record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the hasMoreMatches record component.
    boolean
    Returns the value of the ignoreCase record component.
    int
    Returns the value of the matchCount record component.
    Returns the value of the matches record component.
    Returns the value of the pattern record component.
    final String
    Returns a string representation of this record class.
    long
    Returns the value of the totalLines record component.
    boolean
    Returns the value of the useRegex record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a SearchLogResponse record class.
      Parameters:
      pattern - the value for the pattern record component
      useRegex - the value for the useRegex record component
      ignoreCase - the value for the ignoreCase record component
      matchCount - the value for the matchCount record component
      hasMoreMatches - the value for the hasMoreMatches record component
      totalLines - the value for the totalLines record component
      matches - the value for the matches record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • pattern

      public String pattern()
      Returns the value of the pattern record component.
      Returns:
      the value of the pattern record component
    • useRegex

      public boolean useRegex()
      Returns the value of the useRegex record component.
      Returns:
      the value of the useRegex record component
    • ignoreCase

      public boolean ignoreCase()
      Returns the value of the ignoreCase record component.
      Returns:
      the value of the ignoreCase record component
    • matchCount

      public int matchCount()
      Returns the value of the matchCount record component.
      Returns:
      the value of the matchCount record component
    • hasMoreMatches

      public boolean hasMoreMatches()
      Returns the value of the hasMoreMatches record component.
      Returns:
      the value of the hasMoreMatches record component
    • totalLines

      public long totalLines()
      Returns the value of the totalLines record component.
      Returns:
      the value of the totalLines record component
    • matches

      Returns the value of the matches record component.
      Returns:
      the value of the matches record component