java.lang.Object
java.lang.Record
ch.rasc.jcentserverclient.models.ClientInfo
public record ClientInfo(String client, String user, Object connInfo, Object chanInfo)
extends Record
Client information.
-
Constructor Summary
ConstructorsConstructorDescriptionClientInfo(String client, String user, Object connInfo, Object chanInfo) Creates an instance of aClientInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionchanInfo()Returns the value of thechanInforecord component.client()Returns the value of theclientrecord component.connInfo()Returns the value of theconnInforecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.user()Returns the value of theuserrecord component.
-
Constructor Details
-
ClientInfo
Creates an instance of aClientInforecord class.- Parameters:
client- the value for theclientrecord componentuser- the value for theuserrecord componentconnInfo- the value for theconnInforecord componentchanInfo- the value for thechanInforecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
client
Returns the value of theclientrecord component.- Returns:
- the value of the
clientrecord component
-
user
Returns the value of theuserrecord component.- Returns:
- the value of the
userrecord component
-
connInfo
Returns the value of theconnInforecord component.- Returns:
- the value of the
connInforecord component
-
chanInfo
Returns the value of thechanInforecord component.- Returns:
- the value of the
chanInforecord component
-