Class Feature<F>

java.lang.Object
es.uam.eps.ir.relison.diffusion.data.Feature<F>
Type Parameters:
F - parameter for the information.
All Implemented Interfaces:
java.lang.Cloneable

public class Feature<F>
extends java.lang.Object
implements java.lang.Cloneable
Class for the parameters we want to measure at evaluation. By now, although its values can be variated, they are treated as nominal values.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    private F value
    Value of the parameter.
  • Constructor Summary

    Constructors 
    Constructor Description
    Feature​(F value)
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    Feature<F> clone()  
    boolean equals​(java.lang.Object obj)  
    F getValue()
    Obtains the value of the parameter.
    int hashCode()  

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • value

      private final F value
      Value of the parameter.
  • Constructor Details

    • Feature

      public Feature​(F value)
      Constructor.
      Parameters:
      value - Value of the parameter.
  • Method Details

    • equals

      public boolean equals​(java.lang.Object obj)
      Overrides:
      equals in class java.lang.Object
    • hashCode

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

      public Feature<F> clone() throws java.lang.CloneNotSupportedException
      Overrides:
      clone in class java.lang.Object
      Throws:
      java.lang.CloneNotSupportedException
    • getValue

      public F getValue()
      Obtains the value of the parameter.
      Returns:
      the value.