Class IdxValue<W>

java.lang.Object
es.uam.eps.ir.relison.index.IdxValue<W>
Type Parameters:
W - Type of the weights.
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<IdxValue<W>>
Direct Known Subclasses:
EdgeType, MultiEdgeTypes, MultiEdgeWeights

public class IdxValue<W>
extends java.lang.Object
implements java.lang.Comparable<IdxValue<W>>, java.io.Serializable, java.lang.Cloneable
Class for expressing weights.
See Also:
Serialized Form
  • Field Summary

    Fields 
    Modifier and Type Field Description
    private int idx
    Identifier.
    private W value
    Value of the weight.
  • Constructor Summary

    Constructors 
    Constructor Description
    IdxValue​(int idx, W value)
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    int compareTo​(IdxValue t)  
    int getIdx()
    Gets the identifier.
    W getValue()
    Gets the value of the weight.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • idx

      private final int idx
      Identifier.
    • value

      private final W value
      Value of the weight.
  • Constructor Details

    • IdxValue

      public IdxValue​(int idx, W value)
      Constructor.
      Parameters:
      idx - Identifier.
      value - Value of the weight.
  • Method Details

    • compareTo

      public int compareTo​(IdxValue t)
      Specified by:
      compareTo in interface java.lang.Comparable<W>
    • getIdx

      public int getIdx()
      Gets the identifier.
      Returns:
      the identifier.
    • getValue

      public W getValue()
      Gets the value of the weight.
      Returns:
      the value of the weight.