Code example for BigDecimal

Methods: hashCode

0
        @Override 
        public int hashCode() 
        { 
            final int prime = 31;
            int result = 1;
            result = prime * result + ((bd == null)?0:bd.hashCode());
            result = prime * result + ((bdList == null)?0:bdList.hashCode());
            result = prime * result + ((bi == null)?0:bi.hashCode());
            result = prime * result + ((biList == null)?0:biList.hashCode());
            result = prime * result + id;
            return result;
        } 
 
        @Override 
        public boolean equals(Object obj)
        { 
            if (this == obj)
                return true; 
            if (obj == null)
                return false; 
            if (getClass() != obj.getClass())