test_class.file: runelite-client/src/test/java/net/runelite/client/plugins/grounditems/WildcardMatchLoaderTest.java
test_class.identifier: WildcardMatchLoaderTest
test_case.body: @Test(timeout = 1000)
  	public void testExplosive()
  	{
  		String name = "archer" + Strings.repeat('e', 50000) + "s ring";
  		WildcardMatchLoader loader = new WildcardMatchLoader(Arrays.asList(name + "* < 100"));
  		assertTrue(loader.load(new NamedQuantity(name, 50)));
  		assertFalse(loader.load(new NamedQuantity(name, 150)));
  	}
test_case.class_method_signature: WildcardMatchLoaderTest.testExplosive()
test_case.full_signature: @Test(timeout = 1000) public void testExplosive()
test_case.identifier: testExplosive
test_case.invocations: repeat asList assertTrue load assertFalse load
test_case.modifiers: @Test(timeout = 1000) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testExplosive()
focal_class.declarator: itemThresholds
focal_class.modifier: private final
focal_class.original_string: private final List<ItemThreshold> itemThresholds;
focal_class.type: List<ItemThreshold>
focal_class.var_name: itemThresholds
focal_class.file: runelite-client/src/main/java/net/runelite/client/plugins/grounditems/WildcardMatchLoader.java
focal_class.identifier: WildcardMatchLoader
focal_class.class_method_signature: WildcardMatchLoader.WildcardMatchLoader(List<String> configEntries)
focal_class.full_signature:   WildcardMatchLoader(List<String> configEntries)
focal_class.identifier: WildcardMatchLoader
focal_class.parameters: (List<String> configEntries)
focal_class.signature:  WildcardMatchLoader(List<String> configEntries)
focal_class.class_method_signature: WildcardMatchLoader.load(@Nonnull final NamedQuantity key)
focal_class.full_signature: @Override public Boolean load(@Nonnull final NamedQuantity key)
focal_class.identifier: load
focal_class.modifiers: @Override public
focal_class.parameters: (@Nonnull final NamedQuantity key)
focal_class.return: Boolean
focal_class.signature: Boolean load(@Nonnull final NamedQuantity key)
focal_class.superclass: extends CacheLoader<NamedQuantity, Boolean>
focal_method.body: @Override
  	public Boolean load(@Nonnull final NamedQuantity key)
  	{
  		if (Strings.isNullOrEmpty(key.getName()))
  		{
  			return false;
  		}
  
  		final String filteredName = key.getName().trim();
  
  		for (final ItemThreshold entry : itemThresholds)
  		{
  			if (WildcardMatcher.matches(entry.getItemName(), filteredName)
  				&& entry.quantityHolds(key.getQuantity()))
  			{
  				return true;
  			}
  		}
  
  		return false;
  	}
focal_method.class_method_signature: WildcardMatchLoader.load(@Nonnull final NamedQuantity key)
focal_method.full_signature: @Override public Boolean load(@Nonnull final NamedQuantity key)
focal_method.identifier: load
focal_method.invocations: isNullOrEmpty getName trim getName matches getItemName quantityHolds getQuantity
focal_method.modifiers: @Override public
focal_method.parameters: (@Nonnull final NamedQuantity key)
focal_method.return: Boolean
focal_method.signature: Boolean load(@Nonnull final NamedQuantity key)