2 * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.protocol.bgp.rib.impl;
10 import static java.util.Objects.requireNonNull;
12 import javax.annotation.Nonnull;
13 import org.opendaylight.protocol.bgp.rib.spi.entry.RouteEntryInfo;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev171207.PeerId;
15 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
16 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifierWithPredicates;
18 public final class RouteEntryInfoImpl implements RouteEntryInfo {
19 private final PeerId peerId;
20 private final NodeIdentifierWithPredicates key;
21 private final YangInstanceIdentifier rootPath;
23 public RouteEntryInfoImpl(final PeerId peerId, final NodeIdentifierWithPredicates key,
24 final YangInstanceIdentifier rootPath) {
25 this.peerId = requireNonNull(peerId);
26 this.key = requireNonNull(key);
27 this.rootPath = requireNonNull(rootPath);
32 public PeerId getToPeerId() {
38 public NodeIdentifierWithPredicates getRouteId() {
44 public YangInstanceIdentifier getRootPath() {