import static org.opendaylight.protocol.bgp.cli.utils.NeighborStateCliUtils.addHeader;
import java.io.PrintStream;
-import java.util.List;
+import java.util.Collection;
import org.apache.karaf.shell.support.table.ShellTable;
import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.rev151009.bgp.neighbor.group.State;
import org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.rev151009.bgp.peer.group.PeerGroup;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.openconfig.extensions.rev180329.PeerGroupStateAugmentation;
-//PeerGroupStateCliUtils sends Peer Group Operational State to PrintStream
+// PeerGroupStateCliUtils sends Peer Group Operational State to PrintStream
final class PeerGroupStateCliUtils {
private PeerGroupStateCliUtils() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
- static void displayPeerOperationalState(@NonNull final List<PeerGroup> peerGroupList,
+ static void displayPeerOperationalState(@NonNull final Collection<PeerGroup> peerGroupList,
@NonNull final PrintStream stream) {
final ShellTable table = new ShellTable();
table.column("Attribute").alignLeft();