Append the given item to the end of the list
@param segment segment to append
331493
public void append(LogSegment segment) {
        while (true) {
            List<LogSegment> curr = contents.get();
            List<LogSegment> updated = new ArrayList<LogSegment>(curr);
            updated.add(segment);
            if (contents.compareAndSet(curr, updated)) {
                return;
            }
        }
    }
46398
public void connectBeginToEnd(SGraphSegment segment) {
		if (segment.getGraph() != getGraph()) {
			throw new IllegalArgumentException();
		}
		final SGraphPoint point = new SGraphPoint(getGraph());
		setBegin(point);
		segment.setEnd(point);

		final SGraph g = getGraph();
		assert g != null;
		g.updatePointCount(-1);
	}
1371628
public static final Segment encode(final SegmentId segment) {
        Preconditions.checkNotNull(segment, "segment");
        return new Segment(segment.getStreamInfo().getScope(),
                segment.getStreamInfo().getStream(),
                segment.getSegmentId());
    }
1128209
protected void submitSegmentIndexBuffer() {
        if(_sibEnabled && !_sib.isDirty()) {
            _sib.setSegmentId(_segment.getSegmentId());
            _sib.setSegmentLastForcedTime(_segment.getLastForcedTime());
            _segmentManager.submit(_sib);
        } else {
            _segmentManager.remove(_sib);
        }
    }
292045
protected void selectSegment(Segment segment) {
    if(segment.isUnpaired()) {
      // remember selected unpaired segment
      for(Segment other : segments.getPairedSegments(segment)) {
        indirectSelections.put(other, segment);
        selectSegment(other);
      }
    }
    else {
      if(!selectedSegments.contains(segment)) {
        selectedSegments.add(segment);
        if(segment.getDBIDs() != null) {
          unselectedObjects.removeDBIDs(segment.getDBIDs());
        }
      }
    }
  }
150143
private static void add(LineString line, int flag, ArrayList<SegmentString> segments) {
        SegmentString ss = new NodedSegmentString(line.getCoordinates(),
                flag);
        segments.add(ss);
    }
232035
protected void append(RoaringArray sa, int startingIndex, int end) {
    extendArray(end - startingIndex);
    for (int i = startingIndex; i < end; ++i) {
      this.keys[this.size] = sa.keys[i];
      this.values[this.size] = sa.values[i];
      this.size++;
    }
  }
1240065
protected void __endSection(boolean def) {
        if (null == tmpOut && null == tmpCaller) throw new IllegalStateException("section has not been started");
        __addLayoutSection(section, __buffer.toString(), def);
        __buffer = tmpOut;
        __caller = tmpCaller;
        tmpOut = null;
        tmpCaller = null;
    }
257865
private void mergeReleasedEntries(Segment segment, OffsetPredicate predicate, Segment compactSegment) {
    for (long i = segment.firstIndex(); i <= segment.lastIndex(); i++) {
      long offset = segment.offset(i);
      if (offset != -1 && !predicate.test(offset)) {
        compactSegment.release(i);
      }
    }
  }
1355952
public CommandLineBuilder append(final String[] segments) {
        if (segments != null && segments.length > 0) {
            final String[] command = new String[commandLine.length + segments.length];
            System.arraycopy(commandLine, 0, command, 0, commandLine.length);
            System.arraycopy(segments, 0, command, commandLine.length, segments.length);
            commandLine = command;
        }
        return this;
    }
809997
def append_segment(self, apdu):
        """"""
        if _debug: SSM._debug("append_segment %r", apdu)

        # check for no context
        if not self.segmentAPDU:
            raise RuntimeError("no segmentation context established")

        # append the data
        self.segmentAPDU.put_data(apdu.pduData)
855226
public void addLast(E e) {
        if (e == null)
            throw new NullPointerException();
        elements[tail] = e;
        if ( (tail = (tail + 1) & (elements.length - 1)) == head)
            doubleCapacity();
    }
1356688
public void add(String fragment, Object... params) {

        m_buffer.append(fragment);
        m_params.addAll(Arrays.asList(params));
    }
314489
public void endAllElements() throws KNXMLException
	{
		try {
			while (!layout.empty())
				((Tag) layout.pop()).endTag();
			w.flush();
		}
		catch (final IOException e) {
			throw new KNXMLException(e.getMessage());
		}
	}
687364
public void accept(Supplier<PrimitiveIterator.OfInt> segments) {
      Supplier<PrimitiveIterator.OfInt> notifyThese;
      Object key = currentKey.get();
      if (key != null) {
         pendingSegments.put(key, segments);
         // We now try to go back and set current key to null
         if (currentKey.getAndSet(null) == null) {
            // If it was already null that means we returned our key via the iterator below
            // In this case they may or may not have seen the pendingSegments so if they didn't we have to
            // notify ourselves
            notifyThese = pendingSegments.remove(key);
         } else {
            // Means that the iteration will see this
            notifyThese = null;
         }
      } else {
         // This means that we got a set of segments that had no entries in them or the iterator
         // consumed all entries, so just notify right away
         notifyThese = segments;
      }
      if (notifyThese != null) {
         completionListener.accept(notifyThese);
      }
   }
1176111
@Override
	protected MemorySegment nextSegment(MemorySegment current, int positionInCurrent) throws EOFException
	{	
		final MemorySegment next = this.memorySource.nextSegment();
		if (next != null) {
			this.fullSegments.add(next);
			this.segmentNum++;
			return next;
		} else {
			throw new EOFException();
		}
	}
409729
private void mergeReleasedEntries(Segment segment, Segment compactSegment) {
    for (long i = segment.firstIndex(); i <= segment.lastIndex(); i++) {
      if (!segment.isLive(i)) {
        compactSegment.release(i);
      }
    }
  }