Inserts a header

@param <T>
@param list
@param headerValue
@param headerSize
555397
public static <T> void insertHeader(List<T> list, T headerValue, int headerSize) {
		for (int i = 0; i < headerSize; i++)
			list.add(0, headerValue);
	}
935151
public OpenAPIConnection header(String headerName, String headerValue) {
        this.headers.put(headerName, headerValue);
        return this;
    }
1150599
public void headerOut(String key, String value)
  {
    Objects.requireNonNull(value);
    
    if (isOutCommitted()) {
      return;
    }

    if (headerOutSpecial(key, value)) {
      return;
    }
    
    setHeaderOutImpl(key, value);
  }
212791
public void addHeader(String name, String value) {
        headers.add(name, value);
        List<String> list = caseSensitiveHeaders.get(name);
        if (list == null) {
            list = new ArrayList<String>();
            caseSensitiveHeaders.put(name, list);
        }
        list.add(value);
    }
1023278
public void addHeader(String namespace, String headerName, SOAPElement headerValue) {
    this.soapHeaders.add(headerValue);
  }
878415
public void insertAfter(Token before, TokenList list ) {
        Token after = before.next;

        before.next = list.first;
        list.first.previous = before;
        if( after == null ) {
            last = list.last;
        } else {
            after.previous = list.last;
            list.last.next = after;
        }
        size += list.size;
    }
1034383
private List<WsByteBuffer> writeHeader(List<WsByteBuffer> list) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
            Tr.debug(tc, "Writing gzip header information");
        }
        WsByteBuffer hdr = HttpDispatcher.getBufferManager().allocateDirect(GZIP_Header.length);
        hdr.put(GZIP_Header);
        hdr.flip();
        list.add(hdr);
        this.haveWrittenHeader = true;
        return list;
    }
821695
public void addHeader(String key, Object value) {
		List<Object> values = headers.get(key);
		if (values == null) {
			headers.put(key, values = new ArrayList<Object>());
		}
		values.add(value);
	}
446222
public void add(HttpHeader header, String value) {
        if (value == null)
            throw new IllegalArgumentException("null value");

        HttpField field = new HttpField(header, value);
        add(field);
    }
217065
function insert (getValue, item, list) {
    var index = binaryIndexBy(getValue, getValue(item), list);

    list.splice(index, 0, item);
    return item;
  }
784945
@Override
    public void addHeader(String key, String value)
    {
        _conn.setRequestProperty(key, value);
    }
93390
private void addToList(List<Object> list, Object value) {
    if (value instanceof List) {
      list.addAll((List) value);
    } else {
      list.add(value);
    }
  }
545645
public static <T extends IHasIntegerId> void insertFlatList( List<T> list, TableCollectionManager<T> mng, Func1<T, Integer> parentIdGetter )
	{
		HashSet<Integer> inserted = new HashSet<>();
		
		List<T> toInsert = new ArrayList<>( list );
		List<T> postPoned = new ArrayList<>();
		List<T> inOrder = new ArrayList<>();
		
		int nbInserted;
		
		while( ! toInsert.isEmpty() )
		{
			nbInserted = 0;
			while( ! toInsert.isEmpty() )
			{
				T a = toInsert.remove( 0 );
				Integer parentId = parentIdGetter.exec( a );
				
				if( parentId==null || parentId<=0 || inserted.contains( parentId ) || mng.getRowForRecordId( parentId )!=null )
				{
					inOrder.add( a );
					inserted.add( a.getId() );
					
					nbInserted++;
				}
				else
				{
					postPoned.add( a );
				}
			}
			toInsert = postPoned;
			postPoned = new ArrayList<>();
			
			if( nbInserted == 0 && ! toInsert.isEmpty() )
			{
				GWT.log("Cannot construct full tree !");
				throw new RuntimeException( "Cannot construct full tree !" );
			}
		}
		
		for( T t : inOrder )
			mng.getDataPlug().updated( t );
	}
665577
@Override
	public void set(String headerName, String headerValue) {
		List<String> headerValues = new LinkedList<String>();
		headerValues.add(headerValue);
		headers.put(headerName, headerValues);
	}
452233
public static final <T> void addList(Object bean, String property, T value)
    {
        addList(bean, property, null, (Class<T> c, String h)->{return value;});
    }
966477
private Map<String, String> prepareHeaderRowDataMap(List<String> header, List<String> rowData) {
        Map<String, String> headerRowDataMap = new HashMap<>();
        if (header.size() == rowData.size()) {
            for (int i = 0; i < header.size(); i++) {
                if (null != header.get(i)) {
                    headerRowDataMap.put(header.get(i).toLowerCase(), rowData.get(i));
                }
            }
        } else {
            logger.warning("header and columns are not of same size");
        }
        return headerRowDataMap;
    }
413722
@SuppressWarnings("unchecked")
    public MergeObservableList<T> insertList(@NonNull ObservableList<? extends T> list) {
        list.addOnListChangedCallback(callback);
        int oldSize = size();
        lists.add(list);
        modCount += 1;
        if (!list.isEmpty()) {
            listeners.notifyInserted(this, oldSize, list.size());
        }
        return this;
    }