edgeproperties.java
来自「P2P模拟器P2Psim的程序源码」· Java 代码 · 共 31 行
JAVA
31 行
package graph;
import java.io.Serializable;
public class EdgeProperties extends Properties implements Serializable
{
private int capacity;
public EdgeProperties(String label)
{
this(label, 5);
}
public EdgeProperties(String label, int newCapacity)
{
super(label);
setCapacity(newCapacity);
}
public int getCapacity()
{
return capacity;
}
public void setCapacity(int capacity)
{
this.capacity = capacity;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?