Record Class HubDefinitionFile.Member
java.lang.Object
java.lang.Record
com.iizix.server.hub.HubDefinitionFile.Member
- Record Components:
id- The member ID exactly as written, never null.url- The public base URL as written, stripped, never null.principal- true when flaggedprincipal: an eligible member.line- The 1-based line number it was defined at.
- Enclosing class:
HubDefinitionFile
Constructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.intline()Returns the value of thelinerecord component.booleanReturns the value of theprincipalrecord component.booleansameAs(HubDefinitionFile.Member other) Tells whether another member is the same definition: the same ID, URL and flag, wherever the lines are.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
Constructor Details
Method Details
sameAs
Tells whether another member is the same definition: the same ID, URL and flag, wherever the lines are.- Parameters:
other- The other member.- Returns:
- true when the definitions are the same.
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.id
url
principal
line