public IList<E> getAll(E elem) {
        IList<E> list = doCreate(-1);
		int size = size();
		for (int i=0; i<size; i++) {
			E e = doGet(i);
			if (equalsElem(e, elem)) {
				list.add(e);
			}
		}
        return list;
    }
Returns all elements in the list equal to the specified element.

@param elem	element to look for
@return		all elements in the list equal to the specified element
jphp-runtime/src/php/runtime/memory/support/IList.java