accepts static method

bool accepts(
  1. Unit u
)

Implementation

static bool accepts(Unit u) => u.id >= 40 && u.id < 50;