Tabnine Logo
TIntList.set
Code IndexAdd Tabnine 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)

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 ) {
  synchronized( mutex ) { list.set( offset, values ); }
}
public void set( int offset, int[] values, int valOffset, int length ) {
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

  • Start an intent from android
  • onRequestPermissionsResult (Fragment)
  • onCreateOptionsMenu (Activity)
  • getExternalFilesDir (Context)
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JTable (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • 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