@Override public long removeLong(int index) { if (fullImpl != null) { return fullImpl.removeLong(index); } else { assert compactImpl != null; return compactImpl.removeInt(index); } }
@Override public void remove() { if (last == -1) throw new IllegalStateException(); LongArrayList.this.removeLong(last); /* * If the last operation was a next(), we are removing an element *before* us, * and we must decrease pos correspondingly. */ if (last < pos) pos--; last = -1; } };
@Override public boolean rem(final long k) { int index = indexOf(k); if (index == -1) return false; removeLong(index); assert size <= a.length; return true; } @Override
@Override public long removeLong(int index) { if (fullImpl != null) { return fullImpl.removeLong(index); } else { assert compactImpl != null; return compactImpl.removeInt(index); } }
@Override public long removeLong(int index) { if (fullImpl != null) { return fullImpl.removeLong(index); } else { assert compactImpl != null; return compactImpl.removeInt(index); } }
kmers.removeLong(offset); if (additionalKmers != null) { if (length() > 0) { if (newOffset < 0 || newOffset >= length()) { additionalKmerOffsets.removeInt(i); additionalKmers.removeLong(i); } else if (newOffset != currentOffset) { additionalKmerOffsets.set(i, newOffset);