Interface IUnitFilter


public interface IUnitFilter
A filter for units, used by RuntimeProjectUtil utility methods.
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    check(IUnit unit)
    Determine if the given unit passed the check.Implementors may choose to implement check2(IUnit) instead, which offers more control on the filtering process.
    default int
    check2(IUnit unit)
    Determine if the given unit passed the check.
  • Method Details

    • check

      default boolean check(IUnit unit)
      Determine if the given unit passed the check.Implementors may choose to implement check2(IUnit) instead, which offers more control on the filtering process.
      Parameters:
      unit - a unit
      Returns:
      true indicates the unit passed the test; the filtering process goes on regarding of that result
    • check2

      default int check2(IUnit unit)
      Determine if the given unit passed the check. An enhanced version of check(IUnit); implementors may implement this method instead.
      Parameters:
      unit - a unit
      Returns:
      0= no_match,continue; 1=match,continue; 2=no_match,stop, 3=match,stop