2 * Copyright (c) 2014 Cisco Systems, 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
8 package org.opendaylight.controller.sal.restconf.impl.test.structures;
10 public class Cont extends LstItem {
13 public Cont(String name) {
18 public String getName() {
23 public boolean equals(Object obj) {
27 if (!this.getClass().equals(obj.getClass())) {
30 if (!super.equals(obj)) {
33 Cont cont = (Cont) obj;
34 if (this.name == null) {
35 if (cont.name != null) {
38 } else if (!this.name.equals(cont.name)) {
45 public int hashCode() {
47 int result = super.hashCode();
48 result = prime * result + ((this.name == null) ? 0 : this.name.hashCode());
53 public String toString() {