rle.simple.ui
Class TypeItemFilter
java.lang.Object
rle.simple.ui.TypeItemFilter
- All Implemented Interfaces:
- ItemFilter
public class TypeItemFilter
- extends java.lang.Object
- implements ItemFilter
Filter for Items, used to restrict available choices based on the "type" of
the items. Filtering is performed based on a list of acceptable "types",
which are Strings denoting partial item paths, eg equipment/weapon. Items
whose path id contains one of the acceptable partial paths are deemed acceptable,
other items are not.
|
Constructor Summary |
TypeItemFilter(java.util.List<java.lang.String> types)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TypeItemFilter
public TypeItemFilter(java.util.List<java.lang.String> types)
accept
public boolean accept(Item i)
- Specified by:
accept in interface ItemFilter