*/
public static <T> MutableBooleanCollection collectBoolean(
Iterator<T> iterator,
BooleanFunction<? super T> booleanFunction)
{
MutableBooleanCollection result = new BooleanArrayList();
while (iterator.hasNext())
{
result.add(booleanFunction.booleanValueOf(iterator.next()));
}
return result;
}