Java iterator over an empty collection of a parameterized type December 18, 2023 by Tarik You can get an empty list of type Foo through the following syntax: return Collections.<Foo>emptyList().iterator();