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 longgetMaxValue()longgetMsPerUnit()floatgetQuotient()UnitValuegetUnitValue()java.lang.StringtoString()
-
Constructor Details
-
UnitImpl
public UnitImpl(long diff)
-
-
Method Details
-
getMsPerUnit
public long getMsPerUnit()- Specified by:
getMsPerUnitin interfaceUnit
-
getMaxValue
public long getMaxValue()- Specified by:
getMaxValuein interfaceUnit
-
getUnitValue
- Specified by:
getUnitValuein interfaceUnit
-
getQuotient
public float getQuotient()- Specified by:
getQuotientin interfaceUnit
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-