Record Class ParsedDataResults<T>
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.sol.models.dto.parsers.ParsedDataResults<T>
- Type Parameters:
T- response type- Record Components:
successfulResults- successfully parsed entriesfailedEntries- entries that failed to parse
public record ParsedDataResults<T>(List<T> successfulResults, List<FailedParsedResultEntry> failedEntries)
extends Record
Class representation of the results of a parser's data.
- Version:
- 1.0.5
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionParsedDataResults(List<T> successfulResults, List<FailedParsedResultEntry> failedEntries) Creates an instance of aParsedDataResultsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefailedEntriesrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thesuccessfulResultsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ParsedDataResults
Creates an instance of aParsedDataResultsrecord class.- Parameters:
successfulResults- the value for thesuccessfulResultsrecord componentfailedEntries- the value for thefailedEntriesrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 withObjects::equals(Object,Object). -
successfulResults
Returns the value of thesuccessfulResultsrecord component.- Returns:
- the value of the
successfulResultsrecord component
-
failedEntries
Returns the value of thefailedEntriesrecord component.- Returns:
- the value of the
failedEntriesrecord component
-