TV-Browser 2.7.5 API

tvraterplugin
Class RatingComparator

java.lang.Object
  extended by tvraterplugin.RatingComparator
All Implemented Interfaces:
Comparator<Rating>

public class RatingComparator
extends Object
implements Comparator<Rating>

This class compares two Ratings. It uses the Title to compare them.

Author:
bodo tasche

Constructor Summary
RatingComparator()
           
 
Method Summary
 int compare(Rating r1, Rating r2)
          Compares two Ratings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

RatingComparator

public RatingComparator()
Method Detail

compare

public int compare(Rating r1,
                   Rating r2)
Compares two Ratings

Specified by:
compare in interface Comparator<Rating>
Parameters:
r1 - rating 1
r2 - rating 2
Returns:
Compare-Result
See Also:
Comparator.compare(java.lang.Object, java.lang.Object)

TV-Browser 2.7.5 API

TV-Browser 2.7.5, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)