Class EnergyMeasure


  • public class EnergyMeasure
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Unit unit  
      private double value  
    • Constructor Summary

      Constructors 
      Constructor Description
      EnergyMeasure()  
    • Field Detail

      • value

        private double value
      • unit

        private Unit unit
    • Constructor Detail

      • EnergyMeasure

        public EnergyMeasure()
    • Method Detail

      • getValue

        public double getValue()
      • setValue

        public void setValue​(double value)
      • getUnit

        public Unit getUnit()
      • setUnit

        public void setUnit​(Unit unit)
      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object