congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
PairList.sort
Code IndexAdd Tabnine to your IDE (free)

How to use
sort
method
in
us.ihmc.tools.lists.PairList

Best Java code snippets using us.ihmc.tools.lists.PairList.sort (Showing top 2 results out of 315)

origin: us.ihmc/ihmc-avatar-interfaces

private void concatenatePathWaypoints()
{
 if (completedPathWaypoints.isEmpty())
 {
   waypointPlan.set(null);
   return;
 }
 PairList<Integer, List<Point3D>> completedPathWaypoints = this.completedPathWaypoints.getCopyForReading();
 completedPathWaypoints.sort(Comparator.comparingInt(ImmutablePair<Integer, List<Point3D>>::getLeft));
 List<Point3D> allWaypoints = new ArrayList<>();
 for (ImmutablePair<Integer, List<Point3D>> completedWaypoints : completedPathWaypoints)
 {
   allWaypoints.addAll(completedWaypoints.getRight());
 }
 waypointPlan.set(allWaypoints);
}
origin: us.ihmc/ihmc-avatar-interfaces

private void concatenateFootstepPlans()
{
 if (completedStepPlans.isEmpty())
 {
   footstepPlan.set(null);
   return;
 }
 PairList<Integer, FootstepPlan> completedStepPlans = this.completedStepPlans.getCopyForReading();
 completedStepPlans.sort(Comparator.comparingInt(ImmutablePair<Integer, FootstepPlan>::getLeft));
 int firstPlan = Integer.MAX_VALUE;
 FootstepPlan totalFootstepPlan = new FootstepPlan();
 for (ImmutablePair<Integer, FootstepPlan> footstepPlanPairs : completedStepPlans)
 {
   FootstepPlan footstepPlan = footstepPlanPairs.getRight();
   int number = footstepPlanPairs.getLeft();
   if (footstepPlan.hasLowLevelPlanGoal() && number < firstPlan)
   {
    totalFootstepPlan.setLowLevelPlanGoal(footstepPlan.getLowLevelPlanGoal());
    firstPlan = number;
   }
   totalFootstepPlan.addFootstepPlan(footstepPlan);
 }
 footstepPlan.set(totalFootstepPlan);
}
us.ihmc.tools.listsPairListsort

Popular methods of PairList

  • add
  • size
  • first
  • get
  • second
  • remove
  • <init>
  • addAll
  • clear
  • isEmpty

Popular in Java

  • Reactive rest calls using spring rest template
  • notifyDataSetChanged (ArrayAdapter)
  • runOnUiThread (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Kernel (java.awt.image)
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • From CI to AI: The AI layer in your organization
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