class ConfigDef {

    static String niceMemoryUnits(long bytes) {
        long value = bytes;
        int i = 0;
        while (value != 0 && i < 4) {
            if (value % 1024L == 0) {
                value /= 1024L;
                i++;
            } else {
                break;
            }
        }
        switch (i) {
            case 1:
                return " (" + value + " kibibyte" + (value == 1 ? ")" : "s)");
            case 2:
                return " (" + value + " mebibyte" + (value == 1 ? ")" : "s)");
            case 3:
                return " (" + value + " gibibyte" + (value == 1 ? ")" : "s)");
            case 4:
                return " (" + value + " tebibyte" + (value == 1 ? ")" : "s)");
            default:
                return "";
        }
    }

    public  ConfigDef();
    public  ConfigDef(ConfigDef base);

}