congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
RecyclingArrayList.getAndGrowIfNeeded
Code IndexAdd Tabnine to your IDE (free)

How to use
getAndGrowIfNeeded
method
in
us.ihmc.robotics.lists.RecyclingArrayList

Best Java code snippets using us.ihmc.robotics.lists.RecyclingArrayList.getAndGrowIfNeeded (Showing top 8 results out of 315)

origin: us.ihmc/IHMCRoboticsToolkit

/**
* Add a new element at the end of this list.
* @return the new element.
*/
public T add()
{
 return getAndGrowIfNeeded(size);
}
origin: us.ihmc/IHMCHumanoidRobotics

public void set(int jointIndex, SimpleTrajectoryPoint1DList otherTrajectoryPointList)
{
 SimpleTrajectoryPoint1DList thisJointTrajectoryPointList = jointTrajectoryInputs.getAndGrowIfNeeded(jointIndex);
 thisJointTrajectoryPointList.set(otherTrajectoryPointList);
}
origin: us.ihmc/IHMCHumanoidRobotics

public void set(int jointIndex, SimpleTrajectoryPoint1DList otherTrajectoryPointList)
{
 SimpleTrajectoryPoint1DList thisJointTrajectoryPointList = jointTrajectoryInputs.getAndGrowIfNeeded(jointIndex);
 thisJointTrajectoryPointList.set(otherTrajectoryPointList);
}
origin: us.ihmc/IHMCHumanoidRobotics

public void set(int jointIndex, SimpleTrajectoryPoint1DList otherTrajectoryPointList)
{
 SimpleTrajectoryPoint1DList thisJointTrajectoryPointList = jointTrajectoryInputs.getAndGrowIfNeeded(jointIndex);
 thisJointTrajectoryPointList.set(otherTrajectoryPointList);
}
origin: us.ihmc/IHMCHumanoidRobotics

public void appendTrajectoryPoint(int jointIndex, SimpleTrajectoryPoint1D trajectoryPoint)
{
 jointTrajectoryInputs.getAndGrowIfNeeded(jointIndex).addTrajectoryPoint(trajectoryPoint);
}
origin: us.ihmc/IHMCHumanoidRobotics

public void addNeckTrajectoryPoint(double trajectoryPointTime, double[] desiredJointPositions, double[] desiredJointVelocities)
{
 MathTools.checkIfEqual(desiredJointPositions.length, desiredJointVelocities.length);
 for (int jointIndex = 0; jointIndex < desiredJointPositions.length; jointIndex++)
 {
   SimpleTrajectoryPoint1DList jointTrajectoryInput = jointTrajectoryInputs.getAndGrowIfNeeded(jointIndex);
   jointTrajectoryInput.addTrajectoryPoint(trajectoryPointTime, desiredJointPositions[jointIndex], desiredJointVelocities[jointIndex]);
 }
}
origin: us.ihmc/IHMCHumanoidRobotics

public void addArmTrajectoryPoint(double trajectoryPointTime, double[] desiredJointPositions, double[] desiredJointVelocities)
{
 MathTools.checkIfEqual(desiredJointPositions.length, desiredJointVelocities.length);
 for (int jointIndex = 0; jointIndex < desiredJointPositions.length; jointIndex++)
 {
   SimpleTrajectoryPoint1DList jointTrajectoryInput = jointTrajectoryInputs.getAndGrowIfNeeded(jointIndex);
   jointTrajectoryInput.addTrajectoryPoint(trajectoryPointTime, desiredJointPositions[jointIndex], desiredJointVelocities[jointIndex]);
 }
}
origin: us.ihmc/IHMCRoboticsToolkit

removeRay.getAndGrowIfNeeded(i).setValue(false);
us.ihmc.robotics.listsRecyclingArrayListgetAndGrowIfNeeded

Javadoc

Returns the element at the specified position in this list. The list will grow if the given index is greater or equal to the size this list.

Popular methods of RecyclingArrayList

  • get
    Returns the element at the specified position in this list.
  • add
    Unsupported operation.
  • clear
    Sets the size of the list to 0, but does not change its capacity. This method is meant to recycle a
  • size
    Returns the number of elements in this list.
  • <init>
  • isEmpty
    Returns true if this list contains no elements.
  • getLast
    Returns the last element of this list. If the list is empty, it returns null.
  • remove
    Removes the first occurrence of the specified element from this list, if it is present. If the list
  • checkWithMaxCapacity
  • ensureCapacity
  • fillElementDataIfNeeded
  • indexOf
    Returns the index of the first occurrence of the specified element in this list, or -1 if this list
  • fillElementDataIfNeeded,
  • indexOf,
  • positiveIndexCheck,
  • rangeCheck,
  • rangeCheckForInsert,
  • toArray,
  • unsafeFastSwap,
  • unsafeGet,
  • unsafeGrowByN

Popular in Java

  • Creating JSON documents from java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setContentView (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • String (java.lang)
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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