Record Class LogStore.TrimResult
java.lang.Object
java.lang.Record
ai.attackframework.tools.burp.ui.log.LogStore.TrimResult
- Enclosing class:
LogStore
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 -
Constructor Summary
ConstructorsConstructorDescriptionTrimResult(int removedEntries, int removedVisible) Creates an instance of aTrimResultrecord 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.intReturns the value of theremovedEntriesrecord component.intReturns the value of theremovedVisiblerecord component.final StringtoString()Returns a string representation of this record class.booleantrimmed()
-
Field Details
-
NONE
-
-
Constructor Details
-
TrimResult
public TrimResult(int removedEntries, int removedVisible) Creates an instance of aTrimResultrecord class.- Parameters:
removedEntries- the value for theremovedEntriesrecord componentremovedVisible- the value for theremovedVisiblerecord component
-
-
Method Details
-
trimmed
public boolean trimmed() -
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. All components in this record class are compared with '=='. -
removedEntries
public int removedEntries()Returns the value of theremovedEntriesrecord component.- Returns:
- the value of the
removedEntriesrecord component
-
removedVisible
public int removedVisible()Returns the value of theremovedVisiblerecord component.- Returns:
- the value of the
removedVisiblerecord component
-