test_class.file: sjk-core/src/test/java/org/gridkit/util/formating/FormatsTest.java
test_class.identifier: FormatsTest
test_case.body: @Test
    public void testToMemorySize() {
      assertEquals("3", toMemorySize(3L));
      assertEquals("38k", toMemorySize(39327L));
      assertEquals("31m", toMemorySize(33553116L));
      assertEquals("35g", toMemorySize(38506017581L));
    }
test_case.class_method_signature: FormatsTest.testToMemorySize()
test_case.full_signature: @Test public void testToMemorySize()
test_case.identifier: testToMemorySize
test_case.invocations: assertEquals toMemorySize assertEquals toMemorySize assertEquals toMemorySize assertEquals toMemorySize
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testToMemorySize()
focal_class.declarator: ZERO_LEAD_DECIMAL_6 = "%06d"
focal_class.modifier: public static final
focal_class.original_string: public static final String ZERO_LEAD_DECIMAL_6 = "%06d";
focal_class.type: String
focal_class.var_name: ZERO_LEAD_DECIMAL_6
focal_class.declarator: DATE_STAMP = "%1$tFT%1$tT.%1$tL%1$tz"
focal_class.modifier: public static final
focal_class.original_string: public static final String DATE_STAMP = "%1$tFT%1$tT.%1$tL%1$tz";
focal_class.type: String
focal_class.var_name: DATE_STAMP
focal_class.declarator: FILE_DATE_STAMP = "%1$tY%1$tm%1$td-%1$tH%1$tM%1$tS"
focal_class.modifier: public static final
focal_class.original_string: public static final String FILE_DATE_STAMP = "%1$tY%1$tm%1$td-%1$tH%1$tM%1$tS";
focal_class.type: String
focal_class.var_name: FILE_DATE_STAMP
focal_class.declarator: TIME_STAMP = "%1$tT.%1$tL"
focal_class.modifier: public static final
focal_class.original_string: public static final String TIME_STAMP = "%1$tT.%1$tL";
focal_class.type: String
focal_class.var_name: TIME_STAMP
focal_class.file: sjk-core/src/main/java/org/gridkit/util/formating/Formats.java
focal_class.identifier: Formats
focal_class.class_method_signature: Formats.toTimestamp(long millis)
focal_class.full_signature: public static final String toTimestamp(long millis)
focal_class.identifier: toTimestamp
focal_class.modifiers: public static final
focal_class.parameters: (long millis)
focal_class.return: String
focal_class.signature: String toTimestamp(long millis)
focal_class.class_method_signature: Formats.toDatestamp(long millis)
focal_class.full_signature: public static final String toDatestamp(long millis)
focal_class.identifier: toDatestamp
focal_class.modifiers: public static final
focal_class.parameters: (long millis)
focal_class.return: String
focal_class.signature: String toDatestamp(long millis)
focal_class.class_method_signature: Formats.toFileDatestamp(long millis)
focal_class.full_signature: public static final String toFileDatestamp(long millis)
focal_class.identifier: toFileDatestamp
focal_class.modifiers: public static final
focal_class.parameters: (long millis)
focal_class.return: String
focal_class.signature: String toFileDatestamp(long millis)
focal_class.class_method_signature: Formats.currentDatestamp()
focal_class.full_signature: public static final String currentDatestamp()
focal_class.identifier: currentDatestamp
focal_class.modifiers: public static final
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String currentDatestamp()
focal_class.class_method_signature: Formats.currentFileDatestamp()
focal_class.full_signature: public static final String currentFileDatestamp()
focal_class.identifier: currentFileDatestamp
focal_class.modifiers: public static final
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String currentFileDatestamp()
focal_class.class_method_signature: Formats.formatRate(double rate)
focal_class.full_signature: public static final String formatRate(double rate)
focal_class.identifier: formatRate
focal_class.modifiers: public static final
focal_class.parameters: (double rate)
focal_class.return: String
focal_class.signature: String formatRate(double rate)
focal_class.class_method_signature: Formats.toMemorySize(long n)
focal_class.full_signature: public static final String toMemorySize(long n)
focal_class.identifier: toMemorySize
focal_class.modifiers: public static final
focal_class.parameters: (long n)
focal_class.return: String
focal_class.signature: String toMemorySize(long n)
focal_class.class_method_signature: Formats.main(String[] args)
focal_class.full_signature: public static void main(String[] args)
focal_class.identifier: main
focal_class.modifiers: public static
focal_class.parameters: (String[] args)
focal_class.return: void
focal_class.signature: void main(String[] args)
focal_method.body: public static final String toMemorySize(long n) {
          if (n < (10l << 10)) {
              return String.valueOf(n);
          }
          else if (n < (10l << 20)) {
              return String.valueOf(n >> 10) + "k";
          }
          else if (n < (10l << 30)) {
              return String.valueOf(n >> 20) + "m";
          }
          else {
              return String.valueOf(n >> 30) + "g";
          }
      }
focal_method.class_method_signature: Formats.toMemorySize(long n)
focal_method.full_signature: public static final String toMemorySize(long n)
focal_method.identifier: toMemorySize
focal_method.invocations: valueOf valueOf valueOf valueOf
focal_method.modifiers: public static final
focal_method.parameters: (long n)
focal_method.return: String
focal_method.signature: String toMemorySize(long n)