Codota Logo
TIntList.set
Code IndexAdd Codota to your IDE (free)

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

Best Java code snippets using gnu.trove.list.TIntList.set (Showing top 20 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 set( int offset, int[] values ) {
  synchronized( mutex ) { list.set( offset, values ); }
}
public void set( int offset, int[] values, int valOffset, int length ) {
origin: alibaba/mdrill

public int set( int index, int element) {
  synchronized( mutex ) { return list.set( index, element ); }
}
public void set( int offset, int[] values ) {
origin: alibaba/mdrill

public void set( int offset, int[] values, int valOffset, int length ) {
  synchronized( mutex ) { list.set( offset, values, valOffset, length ); }
}
origin: CalebFenton/simplify

void pokeAddress(int address) {
  addressStack.set(size() - 1, address);
}
origin: alibaba/mdrill

@Override
public Integer set( int index, Integer value ) {
  int previous_value = list.set( index, value );
  if ( previous_value == list.getNoEntryValue() ) return null;
  else return Integer.valueOf( previous_value );
}
origin: MovingBlocks/Terasology

      if (hint.isUseContentWidth()) {
        Vector2i contentSize = contents.get(i).getPreferredContentSize(canvas, new Vector2i(remainingWidthPerElement, canvas.size().y));
        results.set(i, contentSize.x);
        totalWidthUsed += contentSize.x;
        unprocessedWidgets--;
for (int i = 0; i < results.size(); ++i) {
  if (results.get(i) == 0) {
    results.set(i, remainingWidthPerElement);
origin: com.palantir.patches.sourceforge/trove3

@Override
public void set( int offset, int[] values ) {
  synchronized( mutex ) { list.set( offset, values ); }
}
@Override
origin: net.sf.trove4j/trove4j

public void set( int offset, int[] values ) {
  synchronized( mutex ) { list.set( offset, values ); }
}
public void set( int offset, int[] values, int valOffset, int length ) {
origin: com.palantir.patches.sourceforge/trove3

@Override
public int set( int index, int element) {
  synchronized( mutex ) { return list.set( index, element ); }
}
@Override
origin: net.sf.trove4j/trove4j

public int set( int index, int element) {
  synchronized( mutex ) { return list.set( index, element ); }
}
public void set( int offset, int[] values ) {
origin: conveyal/r5

/**
 * NOTE that this will have an effect on both edges in the bidirectional edge pair.
 */
public void setToVertex(int toVertexIndex) {
  if (isBackward) {
    fromVertices.set(pairIndex, toVertexIndex);
  } else {
    toVertices.set(pairIndex, toVertexIndex);
  }
}
origin: com.conveyal/r5

/**
 * NOTE that this will have an effect on both edges in the bidirectional edge pair.
 */
public void setToVertex(int toVertexIndex) {
  if (isBackward) {
    fromVertices.set(pairIndex, toVertexIndex);
  } else {
    toVertices.set(pairIndex, toVertexIndex);
  }
}
origin: com.conveyal/r5

/**
 * Set the length for the current edge pair (always the same in both directions).
 */
public void setLengthMm (int millimeters) {
  lengths_mm.set(pairIndex, millimeters);
}
origin: net.sf.trove4j/trove4j

@Override
public Integer set( int index, Integer value ) {
  int previous_value = list.set( index, value );
  if ( previous_value == list.getNoEntryValue() ) return null;
  else return Integer.valueOf( previous_value );
}
origin: com.graphhopper/graphhopper

  @Override
  protected boolean goFurther( int nodeId )
  {
    list.set(nodeId, ref.incrementAndGet());
    return super.goFurther(nodeId);
  }
}.start(explorer, startNode);
origin: net.sf.trove4j/core

@Override
public Integer set( int index, Integer value ) {
  int previous_value = list.set( index, value );
  if ( previous_value == list.getNoEntryValue() ) return null;
  else return Integer.valueOf( previous_value );
}
origin: org.btrplace/scheduler-choco

/**
 * Change the VM resource allocation.
 *
 * @param vmIdx the VM identifier
 * @param v     the amount to ask.
 * @return the retained value. May be bigger than {@code v} if a previous call asks for more
 */
public int minVMAllocation(int vmIdx, int v) {
  int vv = Math.max(v, vmAllocation.get(vmIdx));
  vmAllocation.set(vmIdx, vv);
  return vv;
}
origin: com.palantir.patches.sourceforge/trove3

@Override
public Integer set( int index, Integer value ) {
  int previous_value = list.set( index, value );
  if ( previous_value == list.getNoEntryValue() ) return null;
  else return Integer.valueOf( previous_value );
}
origin: conveyal/r5

@Override
public int set (int index, int value) {
  if (index < base.size()) {
    throw new RuntimeException("Modifying the base graph is not allowed.");
  } else {
    return extension.set(index - base.size(), value);
  }
}
origin: com.graphhopper/graphhopper

public static Graph shuffle( Graph g, Graph sortedGraph )
{
  int len = g.getNodes();
  TIntList list = new TIntArrayList(len, -1);
  list.fill(0, len, -1);
  for (int i = 0; i < len; i++)
  {
    list.set(i, i);
  }
  list.shuffle(new Random());
  return createSortedGraph(g, sortedGraph, list);
}
gnu.trove.listTIntListset

Javadoc

Sets the value at the specified offset.

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
  • clear
    Flushes the internal state of the list, resetting the capacity to the default.
  • remove
    Removes length values from the list, starting atoffset
  • 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

  • Running tasks concurrently on multiple threads
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • orElseThrow (Optional)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • String (java.lang)
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
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