Package com.singularsys.jeptests.system

# Class BugsTest.NumberWithUnit

java.lang.Object
com.singularsys.jeptests.system.BugsTest.NumberWithUnit

Enclosing class:
  `BugsTest`

public static class BugsTest.NumberWithUnit extends Object
Class to hold a number with a unit.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `NumberWithUnit(double n, String u)`
  `NumberWithUnit(String s)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `equals(Object obj)`
  `double`
  `getNum()`
  `String`
  `getUnit()`
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### NumberWithUnit

    public NumberWithUnit(String s) throws ParseException
    Throws:
      `ParseException`

  - ### NumberWithUnit

    public NumberWithUnit(double n, String u)

- ## Method Details

  - ### equals

    public boolean equals(Object obj)
    Overrides:
      `equals` in class `Object`

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`

  - ### getNum

    public double getNum()

  - ### getUnit

    public String getUnit()