Code example for BigDecimal

Methods: hashCode

0
		final int prime = 31;
		int result = 1;
		result = prime * result + ((measuringDeviceId == null) ? 0 : measuringDeviceId.hashCode());
		result = prime * result + ((measuringType == null) ? 0 : measuringType.hashCode());
		result = prime * result + ((pointOfTime == null) ? 0 : pointOfTime.hashCode());
		result = prime * result + ((value == null) ? 0 : value.hashCode());
		return result;
	} 
 
	@Override 
	public boolean equals(Object obj) {
		if (this == obj) {
			return true; 
		} 
		if (obj == null) {
			return false; 
		} 
		if (getClass() != obj.getClass()) {
			return false; 
		} 
		MeasuredData other = (MeasuredData) obj;