accepts static method

bool accepts(
  1. Unit u
)

Implementation

static bool accepts(Unit u) => u.id >= 10 && u.id < 20;