Record Class ParsedDataDTO<T>
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.sol.models.dto.parsers.ParsedDataDTO<T>
- Type Parameters:
T- response type- Record Components:
results-ParsedDataResultsmessage- result messagesuccess- did succeedfileName- file name
public record ParsedDataDTO<T>(ParsedDataResults<T> results, String message, boolean success, String fileName)
extends Record
Class representation of the results obtained from a parser.
- Version:
- 1.0.5
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionParsedDataDTO(ParsedDataResults<T> results, String message, boolean success, String fileName) Creates an instance of aParsedDataDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.fileName()Returns the value of thefileNamerecord component.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.results()Returns the value of theresultsrecord component.booleansuccess()Returns the value of thesuccessrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ParsedDataDTO
public ParsedDataDTO(ParsedDataResults<T> results, String message, boolean success, String fileName) Creates an instance of aParsedDataDTOrecord class.
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
results
-
message
-
success
-
fileName
-