/** * Adds the specified {@link ByteArray} to * the beginning of the list * * @param ba * The ByteArray to be added to the list */ public void addFirst(ByteArray ba) { addNode(new Node(ba), header.next); firstByte -= ba.last(); }
/** * Add the specified {@link ByteArray} to * the end of the list * * @param ba * The ByteArray to be added to the list */ public void addLast(ByteArray ba) { addNode(new Node(ba), header); lastByte += ba.last(); }
/** * Adds the specified {@link ByteArray} to * the beginning of the list * * @param ba * The ByteArray to be added to the list */ public void addFirst(ByteArray ba) { addNode(new Node(ba), header.next); firstByte -= ba.last(); }
/** * Add the specified {@link ByteArray} to * the end of the list * * @param ba * The ByteArray to be added to the list */ public void addLast(ByteArray ba) { addNode(new Node(ba), header); lastByte += ba.last(); }
/** * Adds the specified {@link ByteArray} to * the beginning of the list * * @param ba * The ByteArray to be added to the list */ public void addFirst( ByteArray ba ) { addNode( new Node( ba ), header.next ); firstByte -= ba.last(); }
/** * Add the specified {@link ByteArray} to * the end of the list * * @param ba * The ByteArray to be added to the list */ public void addLast( ByteArray ba ) { addNode( new Node( ba ), header ); lastByte += ba.last(); }