Updated the generic type "T" and the word "item" with "E" and "element" respectively to keep more in line with the Java API docs.