Details
-
Wish
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
Description
JavaSpace05.contents() returns a remote iterator named "MatchSet". JavaSpace05.take(with collection) returns a collection.
Implementation detail aside, the purpose of both methods is quite similar - returning multiple entries from space at once, either from the readIfExists-like "contents" method or the take-like take-with-collection method.
Thus it is preferable in my mind to have a standard return type across these methods and any future functionality of the same nature. The community could indicate whether it prefers remote iterators or collections.