⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 searchresult.java

📁 peeranha42是jxta的 p2p程序核心
💻 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 + -