Code example for BigInteger

Methods: equals

0
			return false; 
		} 
		if (obj == this) {
			return true; 
		} 
		return ((User) obj).getUserId().equals(getUserId());
	} 
 
	@Override 
	public int hashCode() { 
		return userId.hashCode();
	} 
 
	public void setUserId(BigInteger userId) {
		this.userId = userId;
	} 
 
	public void setPastBookings(List<Booking> pastBookings) {
		this.pastBookings = pastBookings;
	}