Codota Logo
us.ihmc.robotics.lists
Code IndexAdd Codota to your IDE (free)

How to use us.ihmc.robotics.lists

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: us.ihmc/IHMCRoboticsToolkit

@Override
public F getTrajectoryPoint(int trajectoryPointIndex)
{
 return trajectoryPoints.get(trajectoryPointIndex);
}
origin: us.ihmc/IHMCRoboticsToolkit

@Override
public void clear()
{
 trajectoryPoints.clear();
}
origin: us.ihmc/IHMCRoboticsToolkit

public void copyFromListAndTrimSize(FrameTuple2dArrayList<?> otherList)
{
 ensureCapacity(otherList.size());
 size = otherList.size;
 for (int i = 0; i < size; i++)
 {
   unsafeSet(i, otherList.unsafeGet(i));
 }
}
origin: us.ihmc/IHMCRoboticsToolkit

@Override
public int getNumberOfTrajectoryPoints()
{
 return trajectoryPoints.size();
}
origin: us.ihmc/IHMCRoboticsToolkit

/**
* Returns the last element of this list.
* If the list is empty, it returns {@code null}.
* @return the last element of this list
*/
public T getLast()
{
 if (isEmpty())
   return null;
 else
   return unsafeGet(size - 1);
}
origin: us.ihmc/ihmc-robotics-toolkit

/**
* @return the remaining space in this sequence (capacity() - size())
*/
public int remaining()
{
 return capacity() - size();
}
origin: us.ihmc/IHMCHumanoidRobotics

  @Override
  public boolean isCommandValid()
  {
   return timestamp != -1L && !scan.isEmpty();
  }
}
origin: us.ihmc/IHMCRoboticsToolkit

@Override
public P getLastTrajectoryPoint()
{
 return trajectoryPoints.getLast();
}
origin: us.ihmc/IHMCRoboticsToolkit

private void fillElementDataIfNeeded()
{
 for (int i = 0; i < elementData.length; i++)
 {
   if (elementData[i] == null)
    elementData[i] = builder.newInstance();
 }
}
origin: us.ihmc/ihmc-robotics-toolkit

/**
* Returns {@code true} if this list contains no elements.
*
* @return {@code true} if this list contains no elements.
*/
@Override
public boolean isEmpty()
{
 return size() == 0;
}
origin: us.ihmc/IHMCRoboticsToolkit

/**
* Safe increment that will always the previous index that is inside [0, list.size() - 1].
* @returns {@code (index - 1 + list.size()) % list.size()}.
*/
public static int previous(int index, List<?> list)
{
 return wrap(index - 1, list);
}
origin: us.ihmc/ihmc-robotics-toolkit

/** {@inheritDoc} */
@Override
public boolean containsAll(Collection<?> c)
{
 for (Object o : c)
 {
   if (!contains(o))
    return false;
 }
 return true;
}
origin: us.ihmc/IHMCRoboticsToolkit

/**
* Returns <tt>true</tt> if this list contains the specified element.
*
* @param object element whose presence in this list is to be tested
* @return <tt>true</tt> if this list contains the specified element
*/
@Override
public boolean contains(Object object)
{
 return indexOf(object) >= 0;
}
origin: us.ihmc/IHMCRoboticsToolkit

protected void unsafeSwap(int i, int j)
{
 if (i == j)
   return;
 unsafeFastSwap(i, j);
}
origin: us.ihmc/IHMCRoboticsToolkit

@SuppressWarnings("unchecked")
public RecyclingArrayList(int initialSize, GenericTypeBuilder<T> builder)
{
 elementData = (T[]) new Object[initialSize];
 size = initialSize;
 this.builder = builder;
 fillElementDataIfNeeded();
}
origin: us.ihmc/IHMCRoboticsToolkit

@Override
public P getTrajectoryPoint(int trajectoryPointIndex)
{
 return trajectoryPoints.get(trajectoryPointIndex);
}
origin: us.ihmc/IHMCHumanoidRobotics

public void clear(RobotSide robotSide)
{
 commandId = Packet.VALID_MESSAGE_DEFAULT_ID;
 jointTrajectoryInputs.clear();
 this.robotSide = robotSide;
 executionMode = null;
 previousCommandId = Packet.INVALID_MESSAGE_ID;
}
origin: us.ihmc/IHMCRoboticsToolkit

@Override
public int getNumberOfTrajectoryPoints()
{
 return trajectoryPoints.size();
}
origin: us.ihmc/IHMCRoboticsToolkit

@Override
public F getLastTrajectoryPoint()
{
 return trajectoryPoints.getLast();
}
origin: us.ihmc/IHMCRoboticsToolkit

/**
* Safe increment that will always the next index that is inside [0, list.size() - 1].
* @returns {@code (index + 1) % list.size()}.
*/
public static int next(int index, List<?> list)
{
 return wrap(index + 1, list);
}
us.ihmc.robotics.lists

Most used classes

  • RecyclingArrayList
  • FrameTupleArrayList
  • DenseMatrixArrayList
  • FrameTuple2dArrayList
  • GenericTypeBuilder
  • ListWrappingIndexTools,
  • YoPreallocatedList$DefaultYoVariableAllocator
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