1 package com.atlassian.plugin.mock;
2
3 public class MockGold implements MockMineral, MockThing {
4 int weight;
5
6 public MockGold() {
7 }
8
9 public MockGold(int weight) {
10 this.weight = weight;
11 }
12
13 public int getWeight() {
14 return weight;
15 }
16
17 public boolean equals(Object o) {
18 if (this == o) return true;
19 if (!(o instanceof MockGold)) return false;
20
21 final MockGold mockGold = (MockGold) o;
22
23 if (weight != mockGold.weight) return false;
24
25 return true;
26 }
27
28 public int hashCode() {
29 return weight;
30 }
31 }