2010년 7월 14일 수요일

java HashSet - for all objects

Java allows to call hashset() for all objects.
Thus, we can use HashSet for any type of object T.

Of course, TreeSet is not allowed, unless class does not implement comparator.

Reference:
[1] http://www.roseindia.net/java/java-get-example/get-object-id.shtml

0 개의 댓글: