jcolibri.method.retrieve.NNretrieval.similarity.local.textual
Class TextualSimUtils.WeightedString

java.lang.Object
  extended by jcolibri.method.retrieve.NNretrieval.similarity.local.textual.TextualSimUtils.WeightedString
Enclosing class:
TextualSimUtils

public static class TextualSimUtils.WeightedString
extends java.lang.Object

Represents a string with an asssociated weight.

Version:
1.0
Author:
Juan A. Recio-Garcia

Constructor Summary
TextualSimUtils.WeightedString(java.lang.String string, double weight)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getString()
           
 double getWeight()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextualSimUtils.WeightedString

public TextualSimUtils.WeightedString(java.lang.String string,
                                      double weight)
Method Detail

getString

public java.lang.String getString()
Returns:
Returns the string.

getWeight

public double getWeight()
Returns:
Returns the weight.

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

GAIA - Group for Artificial Intelligence Applications
http://gaia.fdi.ucm.es