Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Quickly finding a matching List?

Thread Tools

Quickly finding a matching List?

Paul Tomblin
Posts: n/a
I've got a class (ShowPlaylist) which contains a List of other objects
where are instances of another class (CompositionPlaylist). Both classes
are stored in relational database tables. I need to quickly find which
ShowPlaylist contains a particular List of CompositionPlaylists and
retrieve it from the database. An idea I just had would be for each
ShowPlaylist to compute an MD5 hash of the UUIDs of each
CompositionPlaylist in the List and store that in one column in the
ShowPlaylist table. Can I be sure the hash would always be the same if
the UUIDs were the same and in the exact same order, and reasonably sure
it would be different if there were any differences in content or order?

Paul Tomblin <(E-Mail Removed)>
I used up all my sick days, so I'm calling in dead.
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
STL algorithm for finding first non-matching value Stephen Howe C++ 5 07-20-2011 08:15 PM
Help with Pattern matching. Matching multiple lines from while reading from a file. Bobby Chamness Perl Misc 2 05-03-2007 06:02 PM
what is the hot key for finding matching bracket in Eclipse david wolf Java 2 04-25-2006 09:12 PM
Pattern matching : not matching problem Marc Bissonnette Perl Misc 9 01-13-2004 05:52 PM
Finding the non-matching values collection/array Robb Meade ASP General 4 06-29-2003 05:42 PM