Closed GoogleCodeExporter closed 9 years ago
You're right that constrainedList() is only interested in constraining what
goes in
to the list.
In your case, are you sure you really want to wait until the moment of each
read to
validate the element? Wouldn't you rather check everything up front once
before you
stick it into the constrained list at all?
If you really do want that, you could use Lists.transform() with a function
that does
your checking and then returns its input...
Original comment by kevin...@gmail.com
on 29 Nov 2007 at 1:17
Closing this, in the absence of further compelling arguments.
Original comment by kevin...@gmail.com
on 30 Jan 2008 at 5:03
Original issue reported on code.google.com by
wallaby....@googlemail.com
on 25 Nov 2007 at 8:09Attachments: