CircosDataWriter { @NotNull static String shorthand(long value) { if (value < 100) { return String.valueOf(value); } if (value < 99_950) { return String.format("%.1fk", value / 1_000d); } return String.format("%.1fm", value / 1_000_000d); } CircosDataWriter(@NotNull final ColorPicker colorPicker, @NotNull final String sample, @NotNull final String outputDir,
            @NotNull final SvCircosConfig circosConfig, @NotNull final CircosConfigWriter configWriter, @NotNull final CircosData data); Object write();  }
@Test public void testShorthand() { assertEquals("1", shorthand(1)); assertEquals("99", shorthand(99)); assertEquals("0.1k", shorthand(100)); assertEquals("1.0k", shorthand(1_000)); assertEquals("99.9k", shorthand(99_949)); assertEquals("0.1m", shorthand(99_950)); assertEquals("0.1m", shorthand(100_000)); }