Record Class ServerOfflineMessage
java.lang.Object
java.lang.Record
com.iohao.net.framework.protocol.ServerOfflineMessage
ServerOfflineMessage
- Since:
- 25.1
- Author:
- 渔民小镇
- date:
- 2025-09-25
-
Constructor Summary
ConstructorsConstructorDescriptionServerOfflineMessage(int serverId) Creates an instance of aServerOfflineMessagerecord 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.intserverId()Returns the value of theserverIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ServerOfflineMessage
public ServerOfflineMessage(int serverId) Creates an instance of aServerOfflineMessagerecord class.- Parameters:
serverId- the value for theserverIdrecord 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 with thecomparemethod from their corresponding wrapper classes. -
serverId
public int serverId()Returns the value of theserverIdrecord component.- Returns:
- the value of the
serverIdrecord component
-