2 * Copyright © 2017 Orange, Inc. and others. 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
9 package org.opendaylight.transportpce.stubpce.topology;
11 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.stubpce.rev170426.path.description.list.PathDescriptions;
14 * class to create structure
15 * of <code>PathDescriptions</code>
18 * @author <a href="mailto:martial.coulibaly@gfi.com">Martial Coulibaly</a> on
21 public class PathDescriptionsOrdered implements Comparable<PathDescriptionsOrdered> {
22 private PathDescriptions pathDescriptions;
26 * PathDescriptionsOrdered constructor.
28 * @param paths PathDescriptions
29 * @param order Integer
31 public PathDescriptionsOrdered(PathDescriptions paths, int order) {
32 setPathDescriptions(paths);
37 public int compareTo(PathDescriptionsOrdered paths) {
38 return this.ord - paths.getOrd();
41 public PathDescriptions getPathDescriptions() {
42 return pathDescriptions;
45 public void setPathDescriptions(PathDescriptions pathDescriptions) {
46 this.pathDescriptions = pathDescriptions;
53 public void setOrd(int ord) {