Tabnine Logo
TIntList.remove
Code IndexAdd Tabnine to your IDE (free)

How to use
remove
method
in
gnu.trove.list.TIntList

Best Java code snippets using gnu.trove.list.TIntList.remove (Showing top 14 results out of 315)

origin: alibaba/mdrill

public void remove( int offset, int length ) {
  synchronized( mutex ) { list.remove( offset, length ); }
}
public int removeAt( int offset ) {
origin: alibaba/mdrill

@Override
protected void removeAt(int index) {
  // Remove from order first since super.removeAt can trigger compaction
  // making the index invalid afterwards
  order.remove(index);
  super.removeAt(index);
}
origin: CalebFenton/simplify

  public static <T> void shiftIntegerMapKeys(int startKey, int shift, TIntObjectMap<T> intToObject) {
    if (shift == 0) {
      return;
    }

    TIntList keysToShift = new TIntArrayList(intToObject.keys());
    // Exclude anything before and including startKey
    for (int currentKey : keysToShift.toArray()) {
      if (currentKey <= startKey) {
        keysToShift.remove(currentKey);
      }
    }

    keysToShift.sort();
    if (shift > 0) {
      // Shifting keys up, so start at the end to avoid overwriting keys.
      keysToShift.reverse();
    }

    for (int currentKey : keysToShift.toArray()) {
      T obj = intToObject.get(currentKey);
      intToObject.remove(currentKey);
      intToObject.put(currentKey + shift, obj);
    }
  }
}
origin: net.sf.trove4j/trove4j

public void remove( int offset, int length ) {
  synchronized( mutex ) { list.remove( offset, length ); }
}
public int removeAt( int offset ) {
origin: com.palantir.patches.sourceforge/trove3

@Override
public void remove( int offset, int length ) {
  synchronized( mutex ) { list.remove( offset, length ); }
}
@Override
origin: net.sf.trove4j/core

public void remove( int offset, int length ) {
  synchronized( mutex ) { list.remove( offset, length ); }
}
public int removeAt( int offset ) {
origin: hernad/easyrec

public void remove( int offset, int length ) {
  synchronized( mutex ) { list.remove( offset, length ); }
}
public int removeAt( int offset ) {
origin: net.sf.trove4j/trove4j

@Override
protected void removeAt(int index) {
  // Remove from order first since super.removeAt can trigger compaction
  // making the index invalid afterwards
  order.remove(index);
  super.removeAt(index);
}
origin: com.palantir.patches.sourceforge/trove3

@Override
protected void removeAt(int index) {
  // Remove from order first since super.removeAt can trigger compaction
  // making the index invalid afterwards
  order.remove(index);
  super.removeAt(index);
}
origin: com.conveyal/r5

public final boolean remove(Envelope envelope, final int item) {
  final AtomicInteger removedCount = new AtomicInteger();
  visit(envelope, false, (bin, mapKey) -> {
    boolean removed = bin.remove(item);
    if (removed) {
      nEntries--;
      removedCount.addAndGet(1);
    }
    return removed;
  });
  if (removedCount.get() > 0) {
    nObjects--;
    return true;
  } else {
    return false;
  }
}
origin: conveyal/r5

public final boolean remove(Envelope envelope, final int item) {
  final AtomicInteger removedCount = new AtomicInteger();
  visit(envelope, false, (bin, mapKey) -> {
    boolean removed = bin.remove(item);
    if (removed) {
      nEntries--;
      removedCount.addAndGet(1);
    }
    return removed;
  });
  if (removedCount.get() > 0) {
    nObjects--;
    return true;
  } else {
    return false;
  }
}
origin: net.sourceforge.owlapi/jfact

private static void resize(TIntList l, int n) {
  if (l.size() > n) {
    while (l.size() > n) {
      l.remove(l.size() - 1);
    }
  } else {
    while (l.size() < n) {
      l.add(null);
    }
  }
}
origin: guokr/simbase

  @Override
  public void onVectorRemoved(VectorSet evtSrc, int vecid) {
    if (evtSrc == this.target) {
      processDeletedEvt(vecid);
    }
    if (evtSrc == this.source) {
      for (int tgtId : this.sorters.get(vecid).vecids()) {
        if (this.reverseIndexer.containsKey(tgtId)) {
          this.reverseIndexer.get(tgtId).remove(vecid);
        }
      }
      this.sorters.remove(vecid);
      this.sorterKeys.remove(vecid);
    }
  }
}
origin: org.choco-solver/choco-sat

ps.remove(j, ps.size() - j);
gnu.trove.listTIntListremove

Javadoc

Removes value from the list.

Popular methods of TIntList

  • add
    Adds a subset of the values in the array vals to the end of the list, in order.
  • toArray
    Copies a slice of the list into a native array.
  • get
    Returns the value at the specified offset.
  • size
    Returns the number of values in the list.
  • sort
    Sort a slice of the list (ascending) using the Sun quicksort implementation.
  • iterator
  • set
    Replace the values in the list starting at offset withlength values from the values array, starting
  • clear
    Flushes the internal state of the list, resetting the capacity to the default.
  • reverse
    Reverse the order of the elements in the range of the list.
  • max
    Finds the maximum value in the list.
  • min
    Finds the minimum value in the list.
  • isEmpty
    Tests whether this list contains any values.
  • min,
  • isEmpty,
  • fill,
  • removeAt,
  • replace,
  • shuffle,
  • subList,
  • sum,
  • binarySearch

Popular in Java

  • Reactive rest calls using spring rest template
  • setScale (BigDecimal)
  • setContentView (Activity)
  • putExtra (Intent)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Notification (javax.management)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now