test_class.file: runelite-client/src/test/java/net/runelite/client/plugins/grounditems/ItemThresholdTest.java
test_class.identifier: ItemThresholdTest
test_case.body: @Test
  	public void test()
  	{
  		Assert.assertEquals(ItemThreshold.fromConfigEntry("Dharok's platebody 100"), new ItemThreshold("Dharok's platebody 100", 0, MORE_THAN));
  		Assert.assertEquals(ItemThreshold.fromConfigEntry("Dharok's platebody 100<100"), new ItemThreshold("Dharok's platebody 100", 100, LESS_THAN));
  		Assert.assertEquals(ItemThreshold.fromConfigEntry("Dharok's platebody > 100"), new ItemThreshold("Dharok's platebody", 100, MORE_THAN));
  		Assert.assertEquals(ItemThreshold.fromConfigEntry("Dharok's platebody < 10 0"), new ItemThreshold("Dharok's platebody", 0, MORE_THAN));
  	}
test_case.class_method_signature: ItemThresholdTest.test()
test_case.full_signature: @Test public void test()
test_case.identifier: test
test_case.invocations: assertEquals fromConfigEntry assertEquals fromConfigEntry assertEquals fromConfigEntry assertEquals fromConfigEntry
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void test()
focal_class.declarator: itemName
focal_class.modifier: private final
focal_class.original_string: private final String itemName;
focal_class.type: String
focal_class.var_name: itemName
focal_class.declarator: quantity
focal_class.modifier: private final
focal_class.original_string: private final int quantity;
focal_class.type: int
focal_class.var_name: quantity
focal_class.declarator: inequality
focal_class.modifier: private final
focal_class.original_string: private final Inequality inequality;
focal_class.type: Inequality
focal_class.var_name: inequality
focal_class.file: runelite-client/src/main/java/net/runelite/client/plugins/grounditems/ItemThreshold.java
focal_class.identifier: ItemThreshold
focal_class.class_method_signature: ItemThreshold.fromConfigEntry(String entry)
focal_class.full_signature: static ItemThreshold fromConfigEntry(String entry)
focal_class.identifier: fromConfigEntry
focal_class.modifiers: static
focal_class.parameters: (String entry)
focal_class.return: ItemThreshold
focal_class.signature: ItemThreshold fromConfigEntry(String entry)
focal_class.class_method_signature: ItemThreshold.quantityHolds(int itemCount)
focal_class.full_signature:  boolean quantityHolds(int itemCount)
focal_class.identifier: quantityHolds
focal_class.parameters: (int itemCount)
focal_class.return: boolean
focal_class.signature: boolean quantityHolds(int itemCount)
focal_method.body: static ItemThreshold fromConfigEntry(String entry)
  	{
  		if (Strings.isNullOrEmpty(entry))
  		{
  			return null;
  		}
  
  		Inequality operator = Inequality.MORE_THAN;
  		int qty = 0;
  
  		for (int i = entry.length() - 1; i >= 0; i--)
  		{
  			char c = entry.charAt(i);
  			if (c >= '0' && c <= '9' || Character.isWhitespace(c))
  			{
  				continue;
  			}
  			switch (c)
  			{
  				case '<':
  					operator = Inequality.LESS_THAN;
  					// fallthrough
  				case '>':
  					if (i + 1 < entry.length())
  					{
  						try
  						{
  							qty = Integer.parseInt(entry.substring(i + 1).trim());
  						}
  						catch (NumberFormatException e)
  						{
  							qty = 0;
  							operator = Inequality.MORE_THAN;
  						}
  						entry = entry.substring(0, i);
  					}
  			}
  			break;
  		}
  
  		return new ItemThreshold(entry.trim(), qty, operator);
  	}
focal_method.class_method_signature: ItemThreshold.fromConfigEntry(String entry)
focal_method.full_signature: static ItemThreshold fromConfigEntry(String entry)
focal_method.identifier: fromConfigEntry
focal_method.invocations: isNullOrEmpty length charAt isWhitespace length parseInt trim substring substring trim
focal_method.modifiers: static
focal_method.parameters: (String entry)
focal_method.return: ItemThreshold
focal_method.signature: ItemThreshold fromConfigEntry(String entry)