dhtpeertestmessage.java

来自「p2p仿真器。开发者可以工作在覆盖层中进行创造和测试逻辑算法或者创建和测试新的服」· Java 代码 · 共 34 行

JAVA
34
字号
package planet.test.helloworld;import planet.commonapi.*;/** * Simple Message to contain a String to deliver a remote application. *  * @author Carles Pairot <cpairot@etse.urv.es> * @author Jordi Pujol <jordi.pujol@estudiants.urv.es> * @version 1.0 */public class DHTPeerTestMessage implements Message {	/**	 * Contents of this message.	 */	private String data = null;		/**	 * Builds a new message with the specified data	 * 	 * @param data	 *            Data to be set to new message.	 */	public DHTPeerTestMessage(String data) {		this.data = data;	}		/**	 * Gets the content of the message.	 * 	 * @return A String containing all information of this message.	 */	public String getData() {		return data;	}}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?