talkrequest.java
来自「CroftSoft Code Library是一个开源的可移植的纯Java游戏库」· Java 代码 · 共 69 行
JAVA
69 行
package com.croftsoft.apps.chat.request; import com.croftsoft.core.lang.NullArgumentException; import com.croftsoft.core.security.Authentication; /********************************************************************* * A request to talk. * * @version * 2003-06-20 * @since * 2003-06-11 * @author * <a href="http://www.croftsoft.com/">David Wallace Croft</a> *********************************************************************/ public final class TalkRequest extends CoalesceableRequest ////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////// { private static final long serialVersionUID = 0L; // private final String text; ////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////// public TalkRequest ( Authentication authentication, String text ) ////////////////////////////////////////////////////////////////////// { super ( authentication ); NullArgumentException.check ( this.text = text ); } ////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////// public String getText ( ) { return text; } ////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////// public boolean equals ( Object other ) ////////////////////////////////////////////////////////////////////// { if ( other == null ) { return false; } if ( other.getClass ( ) != TalkRequest.class ) { return false; } return true; } ////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////// }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?