/*
- * Copyright (c) 2014, 2015 EBay Software Foundation and others. All rights reserved.
+ * Copyright © 2014, 2017 EBay Software Foundation and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
Map<String, TableUpdate> map = Maps.newHashMap();
public TableUpdates() {
- this(Maps.<String, TableUpdate>newHashMap());
+ this(Maps.newHashMap());
}
public TableUpdates(Map<String, TableUpdate> map) {
/*
- * Copyright (c) 2013, 2015 EBay Software Foundation and others. All rights reserved.
+ * Copyright © 2013, 2017 EBay Software Foundation and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
Map<K, V> target = Maps.newHashMap();
public OvsdbMap() {
- this(Maps.<K,V>newHashMap());
+ this(Maps.newHashMap());
}
public OvsdbMap(Map<K, V> value) {
/*
- * Copyright (c) 2013, 2015 EBay Software Foundation and others. All rights reserved.
+ * Copyright © 2013, 2017 EBay Software Foundation and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
Set<T> target = null;
public OvsdbSet() {
- this(Sets.<T>newHashSet());
+ this(Sets.newHashSet());
}
public OvsdbSet(Set<T> backing) {
/*
- * Copyright (c) 2015, 2016 Cisco Systems, Inc. and others. All rights reserved.
+ * Copyright © 2015, 2017 Cisco Systems, Inc. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
private void stampInstanceIdentifier(TransactionBuilder transaction,InstanceIdentifier<Node> iid,
InstanceIdentifierCodec instanceIdentifierCodec) {
OpenVSwitch ovs = TyperUtils.getTypedRowWrapper(transaction.getDatabaseSchema(), OpenVSwitch.class);
- ovs.setExternalIds(Collections.<String,String>emptyMap());
+ ovs.setExternalIds(Collections.emptyMap());
TransactUtils.stampInstanceIdentifier(transaction, iid, ovs.getSchema(), ovs.getExternalIdsColumn().getSchema(),
instanceIdentifierCodec);
}
/*
- * Copyright (c) 2015, 2016 Cisco Systems, Inc. and others. All rights reserved.
+ * Copyright © 2015, 2017 Cisco Systems, Inc. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
String bridgeName, InstanceIdentifierCodec instanceIdentifierCodec) {
Bridge bridge = TyperUtils.getTypedRowWrapper(transaction.getDatabaseSchema(), Bridge.class);
bridge.setName(bridgeName);
- bridge.setExternalIds(Collections.<String,String>emptyMap());
+ bridge.setExternalIds(Collections.emptyMap());
Mutate mutate = TransactUtils.stampInstanceIdentifierMutation(transaction, iid, bridge.getSchema(),
bridge.getExternalIdsColumn().getSchema(), instanceIdentifierCodec);
transaction.add(mutate
/*
- * Copyright (c) 2015, 2016 Intel Corporation and others. All rights reserved.
+ * Copyright © 2015, 2017 Intel Corporation and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
private void stampInstanceIdentifier(TransactionBuilder transaction, InstanceIdentifier<Node> iid,
InstanceIdentifierCodec instanceIdentifierCodec) {
OpenVSwitch ovs = TyperUtils.getTypedRowWrapper(transaction.getDatabaseSchema(), OpenVSwitch.class);
- ovs.setExternalIds(Collections.<String,String>emptyMap());
+ ovs.setExternalIds(Collections.emptyMap());
TransactUtils.stampInstanceIdentifier(transaction, iid, ovs.getSchema(),
ovs.getExternalIdsColumn().getSchema(), instanceIdentifierCodec);
}
/*
- * Copyright (c) 2015, 2016 Brocade Communications Systems, Inc. and others. All rights reserved.
+ * Copyright © 2015, 2017 Brocade Communications Systems, Inc. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
InstanceIdentifierCodec instanceIdentifierCodec) {
Port port = TyperUtils.getTypedRowWrapper(transaction.getDatabaseSchema(), Port.class);
port.setName(interfaceName);
- port.setExternalIds(Collections.<String,String>emptyMap());
+ port.setExternalIds(Collections.emptyMap());
Mutate mutate = TransactUtils.stampInstanceIdentifierMutation(transaction, iid, port.getSchema(),
port.getExternalIdsColumn().getSchema(), instanceIdentifierCodec);
transaction.add(mutate
List<OvsdbTerminationPointAugmentation> tpAugmentations = new ArrayList<>();
if (node == null) {
LOG.error("extractTerminationPointAugmentations: Node value is null");
- return Collections.<OvsdbTerminationPointAugmentation>emptyList();
+ return Collections.emptyList();
}
List<TerminationPoint> terminationPoints = node.getTerminationPoint();
if(terminationPoints != null && !terminationPoints.isEmpty()){
public List<OvsdbTerminationPointAugmentation> readTerminationPointAugmentations(Node node) {
if (node == null) {
LOG.error("readTerminationPointAugmentations: Node value is null");
- return Collections.<OvsdbTerminationPointAugmentation>emptyList();
+ return Collections.emptyList();
}
Node operNode = mdsalUtils.read(LogicalDatastoreType.OPERATIONAL, InstanceIdentifier
.create(NetworkTopology.class)