@Test public void getPIOn4() { assertEquals(Math.PI / 4.0, ConstantLookup.getValue("M_PI_4"), TOL); }
public static double getValue(String name) { Double value = constants.get(name); if (value == null) { throw new IllegalArgumentException("Unknown constant: " + name); } return value; }
ConstantLookup { public static double getValue(String name) { Double value = constants.get(name); if (value == null) { throw new IllegalArgumentException("Unknown constant: " + name); } return value; } }
ConstantLookup { public static double getValue(String name) { Double value = constants.get(name); if (value == null) { throw new IllegalArgumentException("Unknown constant: " + name); } return value; }  }
ConstantLookup { public static double getValue(String name) { Double value = constants.get(name); if (value == null) { throw new IllegalArgumentException("Unknown constant: " + name); } return value; }  static boolean isDefined(String name); static double getValue(String name); }
ConstantLookup { public static double getValue(String name) { Double value = constants.get(name); if (value == null) { throw new IllegalArgumentException("Unknown constant: " + name); } return value; }  static boolean isDefined(String name); static double getValue(String name);  }