Skip to content

SortByPos.java

Raphael Lutz edited this page Sep 8, 2018 · 1 revision

Simple class being used by MultiLaneRoundAbout to sort its Connections. It implements the interface Comparator and thus the following method.

Methods

  • int compare(Connection o1, Connection o2) : compare the 2 connections with o1.getPosition() - o2.getPosition()
Clone this wiki locally