Record Class CaseResponse
java.lang.Object
java.lang.Record
edu.suffolk.litlab.efsp.model.cases.CaseResponse
public record CaseResponse(List<LegalPerson> participants, Map<String,Attorney> attorneys, NameAndCode caseCategory, NameAndCode caseType, String caseTitle, LocalDateTime filedDate, String docketId, String trackingId, String courtCode, List<String> caseLineage, boolean hasUserFiledIntoCase)
extends Record
All of the information Tyler sends about a particular case.
-
Constructor Summary
ConstructorsConstructorDescriptionCaseResponse(List<LegalPerson> participants, Map<String, Attorney> attorneys, NameAndCode caseCategory, NameAndCode caseType, String caseTitle, LocalDateTime filedDate, String docketId, String trackingId, String courtCode, List<String> caseLineage, boolean hasUserFiledIntoCase) Creates an instance of aCaseResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattorneysrecord component.Returns the value of thecaseCategoryrecord component.Returns the value of thecaseLineagerecord component.Returns the value of thecaseTitlerecord component.caseType()Returns the value of thecaseTyperecord component.Returns the value of thecourtCoderecord component.docketId()Returns the value of thedocketIdrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefiledDaterecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thehasUserFiledIntoCaserecord component.Returns the value of theparticipantsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetrackingIdrecord component.
-
Constructor Details
-
CaseResponse
public CaseResponse(List<LegalPerson> participants, Map<String, Attorney> attorneys, NameAndCode caseCategory, NameAndCode caseType, String caseTitle, LocalDateTime filedDate, String docketId, String trackingId, String courtCode, List<String> caseLineage, boolean hasUserFiledIntoCase) Creates an instance of aCaseResponserecord class.- Parameters:
participants- the value for theparticipantsrecord componentattorneys- the value for theattorneysrecord componentcaseCategory- the value for thecaseCategoryrecord componentcaseType- the value for thecaseTyperecord componentcaseTitle- the value for thecaseTitlerecord componentfiledDate- the value for thefiledDaterecord componentdocketId- the value for thedocketIdrecord componenttrackingId- the value for thetrackingIdrecord componentcourtCode- the value for thecourtCoderecord componentcaseLineage- the value for thecaseLineagerecord componenthasUserFiledIntoCase- the value for thehasUserFiledIntoCaserecord 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 '=='. -
participants
Returns the value of theparticipantsrecord component.- Returns:
- the value of the
participantsrecord component
-
attorneys
Returns the value of theattorneysrecord component.- Returns:
- the value of the
attorneysrecord component
-
caseCategory
Returns the value of thecaseCategoryrecord component.- Returns:
- the value of the
caseCategoryrecord component
-
caseType
Returns the value of thecaseTyperecord component.- Returns:
- the value of the
caseTyperecord component
-
caseTitle
Returns the value of thecaseTitlerecord component.- Returns:
- the value of the
caseTitlerecord component
-
filedDate
Returns the value of thefiledDaterecord component.- Returns:
- the value of the
filedDaterecord component
-
docketId
Returns the value of thedocketIdrecord component.- Returns:
- the value of the
docketIdrecord component
-
trackingId
Returns the value of thetrackingIdrecord component.- Returns:
- the value of the
trackingIdrecord component
-
courtCode
Returns the value of thecourtCoderecord component.- Returns:
- the value of the
courtCoderecord component
-
caseLineage
Returns the value of thecaseLineagerecord component.- Returns:
- the value of the
caseLineagerecord component
-
hasUserFiledIntoCase
public boolean hasUserFiledIntoCase()Returns the value of thehasUserFiledIntoCaserecord component.- Returns:
- the value of the
hasUserFiledIntoCaserecord component
-