Java - Make an object collection friendly

Posted by DutrowLLC on Stack Overflow See other posts from Stack Overflow or by DutrowLLC
Published on 2010-06-02T23:44:16Z Indexed on 2010/06/02 23:54 UTC
Read the original article Hit count: 269

Filed under:
|
|
|
|

If an object holds a unique primary key, what interfaces does it need to implement in order to be collection friendly especially in terms of being efficiently sortable, hashable, etc...?

If the primary key is a string, how are these interfaces best implemented?

Thanks!

© Stack Overflow or respective owner

Related posts about java

Related posts about collections