Class Measure

java.lang.Object
be.gaudry.model.brolmeter.Measure
All Implemented Interfaces:
Comparable<Measure>
Direct Known Subclasses:
MeasureHibernateWrapper, VehicleMeasure

public class Measure extends Object implements Comparable<Measure>
Since:
1.0 Feb 7, 2009
Author:
Steph GAUDRY
  • Constructor Details

    • Measure

      public Measure(Meter meter, Date date, double value)
      Parameters:
      meter -
      date -
      value -
  • Method Details

    • getMeter

      public Meter getMeter()
      Returns:
      the meter
    • setMeter

      public void setMeter(Meter meter)
      Parameters:
      meter - the meter to set
    • getComment

      public String getComment()
      Returns:
      the comment
    • setComment

      public void setComment(String comment)
      Parameters:
      comment - the comment to set
    • getDate

      public Date getDate()
      Returns:
      the date
    • getValue

      public double getValue()
      Returns:
      the value
    • setValue

      public void setValue(double value)
      Parameters:
      value - the value to set
    • getId

      public int getId()
      Returns:
      the id
    • setId

      public void setId(int id)
      Parameters:
      id - the id to set
    • compareTo

      public int compareTo(Measure o)
      Compares this Measure with the specified Measure for order. Returns a negative integer, zero, or a positive integer as this Measure is less than, equal to, or greater than the specified Measure. \n id and comment have no impact on the comparison.
      Specified by:
      compareTo in interface Comparable<Measure>
      See Also:
      Comparable.compareTo(Object)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • debug

      public String debug()
      Builds a string with all variables values
      Returns:
      all variables