> As an alternative: we could use a separate method getSize(int max) which > > * if called with max == -1 returns the exact size if quickly available, > * returns -1 otherwise, and > * returns the exact size but not more then max when called with max >= 0. > > This allows for estimates but leaves the caller in control.
+1 (and getSize() would still return -1 I guess?)
