Record Class SessionRecord
java.lang.Object
java.lang.Record
ai.redouble.demo.SessionRecord
-
Constructor Summary
ConstructorsConstructorDescriptionSessionRecord(String id, String user, String secret, String host) Creates an instance of aSessionRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.host()Returns the value of thehostrecord component.id()Returns the value of theidrecord component.secret()Returns the value of thesecretrecord component.final StringtoString()Returns a string representation of this record class.user()Returns the value of theuserrecord component.
-
Constructor Details
-
SessionRecord
Creates an instance of aSessionRecordrecord class.- Parameters:
id- the value for theidrecord componentuser- the value for theuserrecord componentsecret- the value for thesecretrecord componenthost- the value for thehostrecord 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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
user
Returns the value of theuserrecord component.- Returns:
- the value of the
userrecord component
-
secret
Returns the value of thesecretrecord component.- Returns:
- the value of the
secretrecord component
-
host
Returns the value of thehostrecord component.- Returns:
- the value of the
hostrecord component
-