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

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

Best Java code snippets using gnu.trove.list.TIntList.addAll (Showing top 9 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: MovingBlocks/Terasology

public void setVertexWeights(TIntList vertexStartWeight, TIntList vertexWeightCount) {
  this.vertexStartWeights.clear();
  this.vertexStartWeights.addAll(vertexStartWeight);
  this.vertexWeightCounts.clear();
  this.vertexWeightCounts.addAll(vertexWeightCount);
}
origin: MovingBlocks/Terasology

public SkeletalMeshData(List<Bone> bones, List<BoneWeight> weights, List<Vector2f> uvs, TIntList vertexStartWeights,
            TIntList vertexWeightCounts, TIntList indices, AABB staticAABB) {
  for (Bone bone : bones) {
    if (bone.getParent() == null) {
      rootBone = bone;
      break;
    }
  }
  this.bones.addAll(bones);
  this.weights.addAll(weights);
  this.uvs = ImmutableList.copyOf(uvs);
  this.vertexStartWeights.addAll(vertexStartWeights);
  this.vertexWeightCounts.addAll(vertexWeightCounts);
  this.indices.addAll(indices);
  this.staticAABB = staticAABB;
  calculateNormals();
}
origin: MovingBlocks/Terasology

public void setIndices(TIntList indices) {
  this.indices.clear();
  this.indices.addAll(indices);
}
origin: MovingBlocks/Terasology

texCoord0Mesh.addAll(loader.getTexCoord0());
normalsMesh.addAll(loader.getNormals());
indicesMesh.addAll(loader.getIndices());
origin: numenta/htm.java

/**
 * Returns an array containing the sub-field bucket indices for
 * each sub-field of the inputData. To get the associated field names for each of
 * the buckets, call getScalarNames().
 * @param      input     The data from the source. This is typically a object with members.
 *
 * @return     array of bucket indices
 */
public int[] getBucketIndices(String input) {
  TIntList l = new TIntArrayList();
  Map<EncoderTuple, List<EncoderTuple>> encoders = getEncoders();
  if(encoders != null && encoders.size() > 0) {
    for(EncoderTuple t : encoders.keySet()) {
      l.addAll(t.getEncoder().getBucketIndices(input));
    }
  }else{
    throw new IllegalStateException("Should be implemented in base classes that are not " +
      "containers for other encoders");
  }
  return l.toArray();
}
origin: numenta/htm.java

/**
 * Returns an array containing the sub-field bucket indices for
 * each sub-field of the inputData. To get the associated field names for each of
 * the buckets, call getScalarNames().
 * @param      input     The data from the source. This is typically a object with members.
 *
 * @return     array of bucket indices
 */
public int[] getBucketIndices(double input) {
  TIntList l = new TIntArrayList();
  Map<EncoderTuple, List<EncoderTuple>> encoders = getEncoders();
  if(encoders != null && encoders.size() > 0) {
    for(EncoderTuple t : encoders.keySet()) {
      l.addAll(t.getEncoder().getBucketIndices(input));
    }
  }else{
    throw new IllegalStateException("Should be implemented in base classes that are not " +
      "containers for other encoders");
  }
  return l.toArray();
}
origin: numenta/htm.java

/**
 * Returns an array containing the sub-field bucket indices for
 * each sub-field of the inputData. To get the associated field names for each of
 * the buckets, call getScalarNames().
 * @param      input     The data from the source. This is typically a object with members.
 *
 * @return     array of bucket indices
 */
public int[] getBucketIndices(DateTime input) {
  TDoubleList scalars = getScalars(input);
  TIntList l = new TIntArrayList();
  List<EncoderTuple> encoders = getEncoders(this);
  if(encoders != null && encoders.size() > 0) {
    int i = 0;
    for(EncoderTuple t : encoders) {
      l.addAll(t.getEncoder().getBucketIndices(scalars.get(i)));
      ++i;
    }
  }else{
    throw new IllegalStateException("Should be implemented in base classes that are not " +
        "containers for other encoders");
  }
  return l.toArray();
}
origin: com.flowpowered/caustic-api

  /**
   * Replaces the contents of this vertex data by the provided one. This is a deep copy. The vertex attribute are each individually cloned.
   *
   * @param data The data to copy.
   */
  public void copy(VertexData data) {
    clear();
    indices.addAll(data.indices);
    final TIntObjectIterator<VertexAttribute> iterator = data.attributes.iterator();
    while (iterator.hasNext()) {
      iterator.advance();
      attributes.put(iterator.key(), iterator.value().clone());
    }
    nameToIndex.putAll(data.nameToIndex);
  }
}
origin: com.flowpowered/caustic-api

vertexData.getIndices().addAll(indices);
return vertexData;
gnu.trove.listTIntListaddAll

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.
  • 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.
  • max,
  • min,
  • isEmpty,
  • fill,
  • removeAt,
  • replace,
  • shuffle,
  • subList,
  • sum,
  • binarySearch

Popular in Java

  • Reading from database using SQL prepared statement
  • getExternalFilesDir (Context)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • onCreateOptionsMenu (Activity)
  • Kernel (java.awt.image)
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Join (org.hibernate.mapping)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
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