328329330331332333334335336337
List<Integer> vlanIds = query.list(); if (vlanIds.size() > 0) { int max = Collections.max(vlanIds); int min = Collections.min(vlanIds); return new VlanRange(min, max); } return new VlanRange(0, 0); }