Package io.github.anass_abea.impl
Class UnitImpl
java.lang.Object
io.github.anass_abea.impl.UnitImpl
- All Implemented Interfaces:
Unit
public class UnitImpl extends java.lang.Object implements Unit
-
Constructor Summary
Constructors Constructor Description UnitImpl(long diff)
-
Method Summary
Modifier and Type Method Description long
getMaxValue()
long
getMsPerUnit()
float
getQuotient()
UnitValue
getUnitValue()
java.lang.String
toString()
-
Constructor Details
-
UnitImpl
public UnitImpl(long diff)
-
-
Method Details
-
getMsPerUnit
public long getMsPerUnit()- Specified by:
getMsPerUnit
in interfaceUnit
-
getMaxValue
public long getMaxValue()- Specified by:
getMaxValue
in interfaceUnit
-
getUnitValue
- Specified by:
getUnitValue
in interfaceUnit
-
getQuotient
public float getQuotient()- Specified by:
getQuotient
in interfaceUnit
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-