org.qtunes.db
Interface Matcher

All Known Implementing Classes:
FilenameMatcher

public interface Matcher

A Matcher determines whether the fields in a FieldMap match an already existing track. This can be done via a number of ways - the most obvious is on FileName, but if a file is renamed this won't register as a rename but an add and delete. A better approach would be to store a checksum of the audio data in the file, as this doesn't change when the file is tagged or renamed.


Method Summary
 java.lang.Object getKey(FieldMap map)
          Get the key that can be used to uniquely identify a track with the specified fields
 java.lang.Object getKey(Track track)
          Get the key that can be used to uniquely identify the specified track
 

Method Detail

getKey

java.lang.Object getKey(FieldMap map)
Get the key that can be used to uniquely identify a track with the specified fields


getKey

java.lang.Object getKey(Track track)
Get the key that can be used to uniquely identify the specified track