Record Class LogStore.TrimResult

java.lang.Object
java.lang.Record
ai.attackframework.tools.burp.ui.log.LogStore.TrimResult
Enclosing class:
LogStore

public static record LogStore.TrimResult(int removedEntries, int removedVisible) extends Record
Result of a single LogStore.trimIfNeeded() call.

removedEntries is the count of entries removed from the head of the unfiltered model. removedVisible is the subset of those entries that would have rendered under the current visibility filter. Callers performing incremental view updates need removedVisible to know whether the visible window changed; the boolean answer loses that information.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final LogStore.TrimResult
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    TrimResult(int removedEntries, int removedVisible)
    Creates an instance of a TrimResult 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.
    int
    Returns the value of the removedEntries record component.
    int
    Returns the value of the removedVisible record component.
    final String
    Returns a string representation of this record class.
    boolean
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • TrimResult

      public TrimResult(int removedEntries, int removedVisible)
      Creates an instance of a TrimResult record class.
      Parameters:
      removedEntries - the value for the removedEntries record component
      removedVisible - the value for the removedVisible record component
  • Method Details

    • trimmed

      public boolean trimmed()
    • 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. All components in this record class 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.
    • removedEntries

      public int removedEntries()
      Returns the value of the removedEntries record component.
      Returns:
      the value of the removedEntries record component
    • removedVisible

      public int removedVisible()
      Returns the value of the removedVisible record component.
      Returns:
      the value of the removedVisible record component