All pastes #536209 Raw Edit

Mine

public java v1 · immutable
·published 2007-06-04 09:38 UTC
rendered paste body
public class SomeList<E> implements Iterable<E> {    protected class Element {        Element next;        Object data;    }    protected class Iterator extends java.util.Iterator<E> {        Element current;        public E hasNext() {            return (current != last);        }        ...    }    Element first;    Element last;    ...}