public void prepend(StringBuilder buffer, Object value) {
        if (buffer == null) {
            throw new NullPointerException("buffer");
        }

        buffer.insert(0, value);
    }
public void prepend ( StringBuilder buffer , Object value ) { if ( buffer == null ) { throw new NullPointerException ( "buffer" ) ; } buffer . insert ( 0 , value ) ; }
A function to prepend a value to an existing buffer.

@param buffer  the buffer to prepend to
@param value  the value to prepend