52 lines
1.2 KiB
Java
52 lines
1.2 KiB
Java
package info.peper.vz.rest.bo;
|
|
|
|
import java.io.Serializable;
|
|
|
|
public class Sums2 implements Serializable {
|
|
private static final long serialVersionUID = -1816023197422851264L;
|
|
private final long injected;
|
|
private final long obtained;
|
|
private final long produced;
|
|
public Sums2(long injected, long obtained, long produced) {
|
|
super();
|
|
this.injected = injected;
|
|
this.obtained = obtained;
|
|
this.produced = produced;
|
|
}
|
|
public long getInjected() {
|
|
return injected;
|
|
}
|
|
public long getObtained() {
|
|
return obtained;
|
|
}
|
|
public long getProduced() {
|
|
return produced;
|
|
}
|
|
@Override
|
|
public int hashCode() {
|
|
final int prime = 31;
|
|
int result = 1;
|
|
result = prime * result + (int) (injected ^ (injected >>> 32));
|
|
result = prime * result + (int) (obtained ^ (obtained >>> 32));
|
|
result = prime * result + (int) (produced ^ (produced >>> 32));
|
|
return result;
|
|
}
|
|
@Override
|
|
public boolean equals(Object obj) {
|
|
if (this == obj)
|
|
return true;
|
|
if (obj == null)
|
|
return false;
|
|
if (getClass() != obj.getClass())
|
|
return false;
|
|
Sums2 other = (Sums2) obj;
|
|
if (injected != other.injected)
|
|
return false;
|
|
if (obtained != other.obtained)
|
|
return false;
|
|
if (produced != other.produced)
|
|
return false;
|
|
return true;
|
|
}
|
|
}
|