In Java, I need to return an Iterator from my method. My data comes from another object which usually can give me an iterator so I can just return that, but in some circums
You can get an empty list of type Foo through the following syntax:
return Collections.<Foo>emptyList().iterator();