private Builder override(Builder __superior) { if (__superior.protocol != null) protocol(__superior.protocol); if (!__superior.hop.isEmpty()) hop.addAll(__superior.hop); if (!__superior.route.isEmpty()) route.addAll(__superior.route); return this; }
RoutingTableSpec table = derivedRouting.getTable(tableIdx); MessagebusConfig.Routingtable.Builder tableBuilder = new MessagebusConfig.Routingtable.Builder(); tableBuilder.protocol(table.getProtocol()); if (table.hasHops()) { for (int hopIdx = 0, numHops = table.getNumHops(); hopIdx < numHops; ++hopIdx) {
public Builder(Routingtable config) { protocol(config.protocol()); for (Hop h : config.hop()) { hop(new Hop.Builder(h)); } for (Route r : config.route()) { route(new Route.Builder(r)); } }