public void add ( T value ) { Element < T > element = new Element < T > ( bundle , value ) ; element . previous = tail ; if ( tail != null ) tail . next = element ; tail = element ; if ( head == null ) head = element ; }
adds a value to the list