📄 mockgold.java
字号:
package com.opensymphony.tonic.mock;
public class MockGold implements MockMineral
{
int weight;
public MockGold(int weight)
{
this.weight = weight;
}
public int getWeight()
{
return weight;
}
public boolean equals(Object o)
{
if (this == o) return true;
if (!(o instanceof MockGold)) return false;
final MockGold mockGold = (MockGold) o;
if (weight != mockGold.weight) return false;
return true;
}
public int hashCode()
{
return weight;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -