org.ocap.shared.dvr.navigation
Interface RecordingListComparator


public interface RecordingListComparator

This interface represents a sorting criteria to be applied while sorting a RecordingList.


Method Summary
 int compare(RecordingRequest first, RecordingRequest second)
          Compares two entries to check whether the first entry should be placed ahead of the second entry in the iterator list.
 

Method Detail

compare

int compare(RecordingRequest first,
            RecordingRequest second)
Compares two entries to check whether the first entry should be placed ahead of the second entry in the iterator list.

Parameters:
first - the first entry to compare
second - the second entry to compare
Returns:
positive integer if the first argument should be placed ahead of the second argument; negative integer if the second argument should be placed ahead of the first entry; zero if the current order should be retained.