class FreelistNode {

    void write( PageCursor cursor, long unstableGeneration, long pageId, int pos )
    {
        if ( pageId == NO_PAGE_ID )
        {
            throw new IllegalArgumentException( "Tried to write pageId " + pageId + " which means null" );
        }
        assertPos( pos );
        GenerationSafePointer.assertGenerationOnWrite( unstableGeneration );
        cursor.setOffset( entryOffset( pos ) );
        cursor.putInt( (int) unstableGeneration );
        put6BLong( cursor, pageId );
    }

      FreelistNode( int pageSize );

}