import org.slf4j.LoggerFactory;
abstract class AbstractAllPathsRouteEntry extends AddPathAbstractRouteEntry {
- private static final Logger LOG = LoggerFactory.getLogger(AbstractAllPathsRouteEntry.class);
-
@Override
public final boolean selectBest(final long localAs) {
final List<AddPathBestPath> newBestPathList = new ArrayList<>();
}
}
}
-
- if(this.bestPath != null) {
- this.bestPathRemoved = new ArrayList<>(this.bestPath);
- }
-
- if (!newBestPathList.equals(this.bestPath) || this.bestPathRemoved != null && this.bestPathRemoved.removeAll(newBestPathList)) {
- this.bestPath = newBestPathList;
- LOG.trace("Actual Best {}, removed best {}", this.bestPath, this.bestPathRemoved);
- return true;
- }
- return false;
+ return isBestPathNew(newBestPathList);
}
}