gr.uoa.di.madgik.searchlibrary.operatorlibrary.duplicateeliminatoroperator
Class ObjectRank

java.lang.Object
  extended by gr.uoa.di.madgik.searchlibrary.operatorlibrary.duplicateeliminatoroperator.ObjectRank
All Implemented Interfaces:
Comparable<ObjectRank>

public class ObjectRank
extends Object
implements Comparable<ObjectRank>

A simple pair of OID (DocID) and its rank

Author:
paul

Field Summary
 String objID
          object ID (DocID)
 Double rank
          object rank
 
Constructor Summary
ObjectRank()
           
 
Method Summary
 int compareTo(ObjectRank o)
          Returns 0 if both objects match, -1 if this object is less that the other object, +1 otherwise
 boolean equals(Object o)
          Returns true if both objects match; false otherwise.
 int hashCode()
          Returns the object's hash code
 String toString()
          String representation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

objID

public String objID
object ID (DocID)


rank

public Double rank
object rank

Constructor Detail

ObjectRank

public ObjectRank()
Method Detail

equals

public boolean equals(Object o)
Returns true if both objects match; false otherwise.

Overrides:
equals in class Object
Parameters:
o - another object
Returns:
true if both objects match; false otherwise.

hashCode

public int hashCode()
Returns the object's hash code

Overrides:
hashCode in class Object
Returns:
object's hash code

compareTo

public int compareTo(ObjectRank o)
Returns 0 if both objects match, -1 if this object is less that the other object, +1 otherwise

Specified by:
compareTo in interface Comparable<ObjectRank>
Returns:
0 if both objects match, -1 if this object is less that the other object, +1 otherwise

toString

public String toString()
String representation

Overrides:
toString in class Object
Returns:
string representation


Copyright © 2013. All Rights Reserved.