Class SimpleItemValue

  • All Implemented Interfaces:
    ItemValue

    public class SimpleItemValue
    extends java.lang.Object
    implements ItemValue
    A no-frills implementation of ItemValue.
    Author:
    Matthew Pocock
    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleItemValue​(java.lang.Object item, double value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getItem()  
      double getValue()  
      void setValue​(double value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleItemValue

        public SimpleItemValue​(java.lang.Object item,
                               double value)
    • Method Detail

      • getItem

        public java.lang.Object getItem()
        Specified by:
        getItem in interface ItemValue
      • getValue

        public double getValue()
        Specified by:
        getValue in interface ItemValue
      • setValue

        public void setValue​(double value)
        Specified by:
        setValue in interface ItemValue