/** * Gathers the tolerance for floating point comparisons * * @return The tolerance set in the hints, or its default value if not set */ private double getTolerance() { Double tol = ((Double) Hints.getSystemDefault(Hints.COMPARISON_TOLERANCE)); if (tol == null) return Hints.COMPARISON_TOLERANCE.getDefault(); else return tol; } }
/** * Gathers the tolerance for floating point comparisons * * @return The tolerance set in the hints, or its default value if not set */ private static double getTolerance() { Double tol = ((Double) Hints.getSystemDefault(Hints.COMPARISON_TOLERANCE)); if (tol == null) return Hints.COMPARISON_TOLERANCE.getDefault(); else return tol; }