Record Class ICodeScanStatisticsService.CodeScanStatisticsResult
java.lang.Object
java.lang.Record
com.persequor.saga.modules.dpp.sdk.ICodeScanStatisticsService.CodeScanStatisticsResult
- Record Components:
statistics
- The stream ofCodeScanReportResult
containing the statistics, limited by the offset and limittotalCount
- The total count of items in the result, ignoring the offset and limit
- Enclosing interface:
- ICodeScanStatisticsService
public static record ICodeScanStatisticsService.CodeScanStatisticsResult(Stream<CodeScanReportResult> statistics, long totalCount)
extends Record
Result of a code scan statistics query with a search request.
Contains a stream of CodeScanReportResult
and the total count of items in the result, ignoring the offset
and limit.
This is useful for paginated queries where the total count is needed to calculate the number of pages.
-
Constructor Summary
ConstructorsConstructorDescriptionCodeScanStatisticsResult
(Stream<CodeScanReportResult> statistics, long totalCount) Creates an instance of aCodeScanStatisticsResult
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thestatistics
record component.final String
toString()
Returns a string representation of this record class.long
Returns the value of thetotalCount
record component.
-
Constructor Details
-
CodeScanStatisticsResult
Creates an instance of aCodeScanStatisticsResult
record class.- Parameters:
statistics
- the value for thestatistics
record componenttotalCount
- the value for thetotalCount
record 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 '=='. -
statistics
Returns the value of thestatistics
record component.- Returns:
- the value of the
statistics
record component
-
totalCount
public long totalCount()Returns the value of thetotalCount
record component.- Returns:
- the value of the
totalCount
record component
-