/** * Appends the YoEnum representation of the given double value to the given StringBuffer. * * @param stringBuffer StringBuffer to append to * @param doubleValue double value to convert to YoEnum representation */ @Override public void getValueStringFromDouble(StringBuffer stringBuffer, double doubleValue) { int index = (int) Math.round(doubleValue); checkBounds(index); if (index == NULL_VALUE) { stringBuffer.append("null"); } else { stringBuffer.append(enumValuesAsString[index]); } }