Module utilities

Class Unit

java.lang.Object
de.grogra.util.Unit

public class Unit extends Object
  • Constructor Details

    • Unit

      public Unit(String name, double factor, boolean check)
  • Method Details

    • toUnit

      public double toUnit(double qvalue)
    • fromUnit

      public double fromUnit(double uvalue)
    • checkWhenChoosing

      public boolean checkWhenChoosing()
    • getRatio

      public float getRatio(float value)
    • isSpecified

      public boolean isSpecified(String s)
    • toString

      public String toString(float value)
    • toString

      public String toString(double value)
    • parse

      public double parse(String s) throws NumberFormatException
      Throws:
      NumberFormatException