Codota Logo
TIntList.remove
Code IndexAdd Codota 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)

  • Common ways to obtain TIntList
private void myMethod () {
TIntList t =
  • Codota Iconnew TIntArrayList()
  • Codota Iconnew TIntLinkedList()
  • Codota Iconnew TIntArrayList(capacity)
  • Smart code suggestions by Codota
}
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

  • Creating JSON documents from java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • orElseThrow (Optional)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • InetAddress (java.net)
    This class represents an Internet Protocol (IP) address. An IP address is either a 32-bit or 128-bit
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now