# Interface: com.pnfsoftware.jeb.core.IUnitFilter

A filter for units, used by [RuntimeProjectUtil](RuntimeProjectUtil) utility methods.

## Method: check
- parameter: `unit`, type: `com.pnfsoftware.jeb.core.units.IUnit`
- return type: `boolean`

Description: Determine if the given unit passed the check.Implementors may choose to implement [#check2(IUnit)](#check2(IUnit)) instead, which offers more control on the filtering process.
parameter: unit: a unit
return: true indicates the unit passed the test; the filtering process goes on regarding of         that result
implementation note: This method must NOT call the `default` implementation of           [#check2(IUnit)](#check2(IUnit)).

## Method: check2
- parameter: `unit`, type: `com.pnfsoftware.jeb.core.units.IUnit`
- return type: `int`

Description: Determine if the given unit passed the check. An enhanced version of [#check(IUnit)](#check(IUnit)); implementors may implement this method instead.
parameter: unit: a unit
return: 0= no\_match,continue; 1=match,continue; 2=no\_match,stop, 3=match,stop

