public class ItemFilter
extends java.lang.Object
Constructor and Description |
---|
ItemFilter(java.lang.String collections,
java.lang.String materials)
builds a new instance of a
ItemFilter -object by defining a
set of collections and materials. |
Modifier and Type | Method and Description |
---|---|
boolean |
matches(Item item)
checks whether an item matches the filter definitions.
|
public ItemFilter(java.lang.String collections, java.lang.String materials)
ItemFilter
-object by defining a
set of collections and materials.collections
- a string with the collections to be taken into account,
separated by blanksmaterials
- a string with the materials to be taken into account,
separated by blankspublic boolean matches(Item item)
item
- an item to be tested