Class Weight<I,​W>

java.lang.Object
es.uam.eps.ir.relison.graph.Weight<I,​W>
Type Parameters:
I - The type of the identifier.
W - The type of the weight.

public class Weight<I,​W>
extends java.lang.Object
Class for expressing weights.
  • Field Summary

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

    Constructors 
    Constructor Description
    Weight​(I idx, W weight)
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    I getIdx()
    Gets the identifier of the weight.
    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 I idx
      Identifier of the weight.
    • weight

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

    • Weight

      public Weight​(I idx, W weight)
      Constructor.
      Parameters:
      idx - Identifier.
      weight - Value.
  • Method Details

    • getIdx

      public I getIdx()
      Gets the identifier of the weight.
      Returns:
      the identifier of the weight.
    • getValue

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