📄 searchresult.java
字号:
package de.uni_bremen.informatik.p2p.plugins.filesharing.data;
import java.util.ArrayList;
/**
* @author Lars Kordes
*
*/
public class SearchResult {
/** Name of the shared file. */
public String filename;
/** Hash value of the file. */
public String hash;
/** Size of the shared file. */
public long size;
/** The number of chunks of the file*/
public long nrOfChunks;
/** List of all sources. */
public ArrayList sources = new ArrayList();
/**
* Constructor
*
* @param name Name of the file.
* @param hash Hash value of the file.
* @param size Size of the file.
* @param nr Number of chunks.
*/
public SearchResult(String name, String hash, long size, long nr) {
this.filename = name;
this.hash = hash;
this.size = size;
this.nrOfChunks = nr;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -