test_class.file: common/data/src/test/java/com/hashmapinc/server/common/data/UUIDConverterTest.java
test_class.identifier: UUIDConverterTest
test_case.body: @Test
      public void basicUuidComperisonTest() {
          Random r = new Random(System.currentTimeMillis());
          for (int i = 0; i < 100000; i++) {
              long ts = System.currentTimeMillis() + 1000 * 60 * 60 * 24 * 365 * 10;
              long before = (long) (Math.random() * ts);
              long after = (long) (Math.random() * ts);
              if (before > after) {
                  long tmp = after;
                  after = before;
                  before = tmp;
              }
  
              String beforeStr = UUIDConverter.fromTimeUUID(UUIDs.startOf(before));
              String afterStr = UUIDConverter.fromTimeUUID(UUIDs.startOf(after));
  
              if (afterStr.compareTo(beforeStr) < 0) {
                  System.out.println("Before: " + before + " | " + beforeStr);
                  System.out.println("After: " + after + " | " + afterStr);
              }
              Assert.assertTrue(afterStr.compareTo(beforeStr) >= 0);
          }
      }
test_case.class_method_signature: UUIDConverterTest.basicUuidComperisonTest()
test_case.full_signature: @Test public void basicUuidComperisonTest()
test_case.identifier: basicUuidComperisonTest
test_case.invocations: currentTimeMillis currentTimeMillis random random fromTimeUUID startOf fromTimeUUID startOf compareTo println println assertTrue compareTo
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void basicUuidComperisonTest()
focal_class.file: common/data/src/main/java/com/hashmapinc/server/common/data/UUIDConverter.java
focal_class.identifier: UUIDConverter
focal_class.class_method_signature: UUIDConverter.UUIDConverter()
focal_class.full_signature: private  UUIDConverter()
focal_class.identifier: UUIDConverter
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  UUIDConverter()
focal_class.class_method_signature: UUIDConverter.fromString(String src)
focal_class.full_signature: public static UUID fromString(String src)
focal_class.identifier: fromString
focal_class.modifiers: public static
focal_class.parameters: (String src)
focal_class.return: UUID
focal_class.signature: UUID fromString(String src)
focal_class.class_method_signature: UUIDConverter.fromTimeUUID(UUID src)
focal_class.full_signature: public static String fromTimeUUID(UUID src)
focal_class.identifier: fromTimeUUID
focal_class.modifiers: public static
focal_class.parameters: (UUID src)
focal_class.return: String
focal_class.signature: String fromTimeUUID(UUID src)
focal_class.class_method_signature: UUIDConverter.fromTimeUUIDs(List<UUID> uuids)
focal_class.full_signature: public static List<String> fromTimeUUIDs(List<UUID> uuids)
focal_class.identifier: fromTimeUUIDs
focal_class.modifiers: public static
focal_class.parameters: (List<UUID> uuids)
focal_class.return: List<String>
focal_class.signature: List<String> fromTimeUUIDs(List<UUID> uuids)
focal_method.body: public static String fromTimeUUID(UUID src) {
          if (src.version() != 1) {
              throw new IllegalArgumentException("Only Time-Based UUID (Version 1) is supported!");
          }
          String str = src.toString();
          // 58e0a7d7-eebc-11d8-9669-0800200c9a66 => 1d8eebc58e0a7d796690800200c9a66. Note that [11d8] -> [1d8]
          return str.substring(15, 18) + str.substring(9, 13) + str.substring(0, 8) + str.substring(19, 23) + str.substring(24);
      }
focal_method.class_method_signature: UUIDConverter.fromTimeUUID(UUID src)
focal_method.full_signature: public static String fromTimeUUID(UUID src)
focal_method.identifier: fromTimeUUID
focal_method.invocations: version toString substring substring substring substring substring
focal_method.modifiers: public static
focal_method.parameters: (UUID src)
focal_method.return: String
focal_method.signature: String fromTimeUUID(UUID src)