String () { String range; if (myInvert) { if (myFrom == myTo) { range = "!= " + (Float.compare(myFrom, -0.0f) == 0 && Float.compare(myTo, 0.0f) == 0 ? "\u00B10.0f" : myFrom); } else { String first = myFrom == Float.NEGATIVE_INFINITY ? "" : formatRange(Float.NEGATIVE_INFINITY, nextDown(myFrom)); String second = myTo == Float.POSITIVE_INFINITY ? "" : formatRange(nextUp(myTo), Float.POSITIVE_INFINITY); range = StreamEx.of(first, second).without("").joining(" || "); } } else { range = formatRange(myFrom, myTo); } String result = "float"; if (!range.isEmpty()) { result += " " + range; } if (!myNaN) { result += " not NaN"; } else if (!range.isEmpty()) { result += " (or NaN)"; } return result; }