3 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
5 * This program and the accompanying materials are made available under the
6 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 * and is available at http://www.eclipse.org/legal/epl-v10.html
10 package org.opendaylight.controller.clustering.test.internal;
12 import java.io.Serializable;
14 public class ComplexContainer implements Serializable {
17 private Integer state;
19 public ComplexContainer(String i, Integer s) {
21 this.f = new ComplexClass(i);
22 this.f1 = new ComplexClass1(i);
25 public String getIdentity() {
26 if (this.f != null && this.f1 != null) {
27 return ("[" + f.whoAmI() + "]-[" + f1.whoAmI() + "]");
32 public void setIdentity(String i) {
36 if (this.f1 != null) {
41 public Integer getState() {
46 public String toString() {
47 return ("{ID:" + this.getIdentity() + ",STATE:" + this.state + "}");