test_class.file: gazeplay-commons/src/test/java/net/gazeplay/commons/utils/games/ResourceFileManagerTest.java
test_class.identifier: ResourceFileManagerTest
test_case.body: @Test
      void canConstructRegexForFileExtensions() {
          Set<String> extensions = Collections
              .unmodifiableSet(Sets.newHashSet("jpg", "jpeg", "png"));
          String result = ResourceFileManager.createExtensionRegex(extensions);
          String expected = ".*\\.(?i)(jpg|png|jpeg)";
  
          assert (expected.equals(result));
      }
test_case.class_method_signature: ResourceFileManagerTest.canConstructRegexForFileExtensions()
test_case.full_signature: @Test void canConstructRegexForFileExtensions()
test_case.identifier: canConstructRegexForFileExtensions
test_case.invocations: unmodifiableSet newHashSet createExtensionRegex equals
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void canConstructRegexForFileExtensions()
focal_class.file: gazeplay-commons/src/main/java/net/gazeplay/commons/utils/games/ResourceFileManager.java
focal_class.identifier: ResourceFileManager
focal_class.class_method_signature: ResourceFileManager.getResourcePaths(String path)
focal_class.full_signature: public static Set<String> getResourcePaths(String path)
focal_class.identifier: getResourcePaths
focal_class.modifiers: public static
focal_class.parameters: (String path)
focal_class.return: Set<String>
focal_class.signature: Set<String> getResourcePaths(String path)
focal_class.class_method_signature: ResourceFileManager.getResourceFolders(String path)
focal_class.full_signature: public static Set<String> getResourceFolders(String path)
focal_class.identifier: getResourceFolders
focal_class.modifiers: public static
focal_class.parameters: (String path)
focal_class.return: Set<String>
focal_class.signature: Set<String> getResourceFolders(String path)
focal_class.class_method_signature: ResourceFileManager.resourceExists(String location)
focal_class.full_signature: public static boolean resourceExists(String location)
focal_class.identifier: resourceExists
focal_class.modifiers: public static
focal_class.parameters: (String location)
focal_class.return: boolean
focal_class.signature: boolean resourceExists(String location)
focal_class.class_method_signature: ResourceFileManager.getMatchingResources(String location)
focal_class.full_signature: public static Set<String> getMatchingResources(String location)
focal_class.identifier: getMatchingResources
focal_class.modifiers: public static
focal_class.parameters: (String location)
focal_class.return: Set<String>
focal_class.signature: Set<String> getMatchingResources(String location)
focal_class.class_method_signature: ResourceFileManager.createExtensionRegex(Set<String> fileExtensions)
focal_class.full_signature: static String createExtensionRegex(Set<String> fileExtensions)
focal_class.identifier: createExtensionRegex
focal_class.modifiers: static
focal_class.parameters: (Set<String> fileExtensions)
focal_class.return: String
focal_class.signature: String createExtensionRegex(Set<String> fileExtensions)
focal_method.body: static String createExtensionRegex(Set<String> fileExtensions) {
          StringBuilder validExtensions = new StringBuilder();
          for (Iterator<String> it = fileExtensions.iterator(); it.hasNext(); ) {
              String extension = it.next();
              if (it.hasNext())
                  validExtensions.append(extension).append("|");
              else
                  validExtensions.append(extension);
          }
  
          return ".*\\.(?i)(" + validExtensions + ")";
      }
focal_method.class_method_signature: ResourceFileManager.createExtensionRegex(Set<String> fileExtensions)
focal_method.full_signature: static String createExtensionRegex(Set<String> fileExtensions)
focal_method.identifier: createExtensionRegex
focal_method.invocations: iterator hasNext next hasNext append append append
focal_method.modifiers: static
focal_method.parameters: (Set<String> fileExtensions)
focal_method.return: String
focal_method.signature: String createExtensionRegex(Set<String> fileExtensions)