@Test public void testQuantityConversion() { assertThat(StorageUtils.parseMemory(new Quantity("1000G")), is(1_000L * 1_000L * 1_000L * 1_000L)); assertThat(StorageUtils.parseMemory(new Quantity("100Gi")), is(100L * 1_024L * 1_024L * 1_024L)); Quantity size = new Quantity("100", "Gi"); assertThat(StorageUtils.parseMemory(size), is(100L * 1_024L * 1_024L * 1_024L)); }
public static double parseMemory(String memory, String units) { return parseMemory(memory) / (double) memoryFactor(units); }
StorageUtils { public static double parseMemory(String memory, String units) { return parseMemory(memory) / (double) memoryFactor(units); } }
StorageUtils { public static double parseMemory(String memory, String units) { return parseMemory(memory) / (double) memoryFactor(units); }  }
StorageUtils { public static double parseMemory(String memory, String units) { return parseMemory(memory) / (double) memoryFactor(units); }  static double parseMemory(String memory, String units); static long parseMemory(Quantity size); static long parseMemory(String size); static boolean usesEphemeral(Storage storage); }
StorageUtils { public static double parseMemory(String memory, String units) { return parseMemory(memory) / (double) memoryFactor(units); }  static double parseMemory(String memory, String units); static long parseMemory(Quantity size); static long parseMemory(String size); static boolean usesEphemeral(Storage storage);  }