Package edu.suffolk.litlab.efsp.model
Record Class PartyId
java.lang.Object
java.lang.Record
edu.suffolk.litlab.efsp.model.PartyId
Some reference in a filing to a party that could either be in the current filing or it could
already exist in the EFMs system. The ID is whichever of the "Kind" it is.
- Author:
- brycew
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PartyIdFactory method where the ID refers to an existing party in the EFM's system.static PartyIdFactory method where the ID refers to a newly added party in this filing.final booleanIndicates whether some other object is "equal to" this one.If we got the ID from Tyler, without the `id-` prefix.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.booleanbooleanedu.suffolk.litlab.efsp.model.PartyId.Kindkind()Returns the value of thekindrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PartyId
Creates an instance of aPartyIdrecord class.- Parameters:
id- the value for theidrecord componentkind- the value for thekindrecord component
-
-
Method Details
-
CurrentFilingNew
Factory method where the ID refers to a newly added party in this filing. -
Already
Factory method where the ID refers to an existing party in the EFM's system. -
isNewInCurrentFiling
public boolean isNewInCurrentFiling() -
isAlreadyInCase
public boolean isAlreadyInCase() -
getIdString
-
getIdentificationString
If we got the ID from Tyler, without the `id-` prefix. Otherwise our same thing. -
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 withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
kind
public edu.suffolk.litlab.efsp.model.PartyId.Kind kind()Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-