//randomly chosen, non-zero, odd number // ideally different for each class return new HashCodeBuilder(17, 37). append(name). append(age). append(smoker). toHashCode(); }
1,000,000 2476 2589 SimpleDateFormat s = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss") FastDateFormat f = FastDateFormat.getInstance("yyyy-MM-dd HH:mm:ss") for (int i = 0; i < 100000; i++) { f.parse("2013-07-28 15:00:30"); //s.parse("2013-07-28 15:00:30"); }