/** * Removes the last node in this list * * @return * The node that was taken off of the list */ public Node removeLast() { Node node = header.getPreviousNode(); lastByte -= node.ba.last(); return removeNode(node); }
/** * Removes the first node from this list * * @return * The node that was removed */ public Node removeFirst() { Node node = header.getNextNode(); firstByte += node.ba.last(); return removeNode(node); }
/** * 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(); }
/** * Removes the first node from this list * * @return * The node that was removed */ public Node removeFirst() { Node node = header.getNextNode(); firstByte += node.ba.last(); return removeNode(node); }
/** * Removes the last node in this list * * @return * The node that was taken off of the list */ public Node removeLast() { Node node = header.getPreviousNode(); lastByte -= node.ba.last(); return removeNode(node); }
/** * Removes the last node in this list * * @return * The node that was taken off of the list */ public Node removeLast() { Node node = header.getPreviousNode(); lastByte -= node.ba.last(); return removeNode( node ); }
/** * Removes the first node from this list * * @return * The node that was removed */ public Node removeFirst() { Node node = header.getNextNode(); firstByte += node.ba.last(); return removeNode( node ); }
/** * 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(); }
if ( first() != otherByteArray.first() || last() != otherByteArray.last() || !order().equals( otherByteArray.order() ) )
if (first() != otherByteArray.first() || last() != otherByteArray.last() || !order().equals(otherByteArray.order())) { return false;
if (first() != otherByteArray.first() || last() != otherByteArray.last() || !order().equals(otherByteArray.order())) { return false;
ByteArray ba = firstNode.getByteArray(); if (ba.last() == actualLength) { return ba.getSingleIoBuffer();
ByteArray ba = node.getByteArray(); if ( ba.last() == actualLength ) { return ba.getSingleIoBuffer();
ByteArray ba = firstNode.getByteArray(); if (ba.last() == actualLength) { return ba.getSingleIoBuffer();