Package be.gaudry.model.brolmeter
Class Measure
java.lang.Object
be.gaudry.model.brolmeter.Measure
- All Implemented Interfaces:
Comparable<Measure>
- Direct Known Subclasses:
MeasureHibernateWrapper
,VehicleMeasure
- Since:
- 1.0 Feb 7, 2009
- Author:
- Steph GAUDRY
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Measure
- Parameters:
meter
-date
-value
-
-
-
Method Details
-
getMeter
- Returns:
- the meter
-
setMeter
- Parameters:
meter
- the meter to set
-
getComment
- Returns:
- the comment
-
setComment
- Parameters:
comment
- the comment to set
-
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
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 interfaceComparable<Measure>
- See Also:
Comparable.compareTo(Object)
-
toString
-
debug
Builds a string with all variables values- Returns:
- all variables
-