public IList<E> getWhere(IPredicate<E> predicate) {
        IList<E> list = doCreate(-1);
		int size = size();
		for (int i=0; i<size; i++) {
			E e = doGet(i);
			if (predicate.test(e)) {
				list.add(e);
			}
		}
        return list;
    }
Returns all elements in the list which match the predicate.

@param predicate	predicate
@return			all elements in the list which match the predicate
jphp-runtime/src/php/runtime/memory/support/IList.java