1 package org.opendaylight.controller.sal.restconf.impl.test.structures;
8 Map<String, LfLst> lfLsts;
10 Map<String, Cont> conts;
13 lfs = new HashMap<>();
14 conts = new HashMap<>();
15 lfLsts = new HashMap<>();
16 lsts = new HashMap<>();
19 public Map<String, Lst> getLsts() {
23 public Map<String, Cont> getConts() {
27 public Map<String, LfLst> getLfLsts() {
31 public Map<String, Lf> getLfs() {
35 public String getLstName() {
39 public LstItem addLf(Lf lf) {
40 lfs.put(lf.getName(), lf);
44 public void addLfLst(LfLst lfLst) {
45 lfLsts.put(lfLst.getName(), lfLst);
48 public void addLst(Lst lst) {
49 lsts.put(lst.getName(), lst);
52 public void addCont(Cont cont) {
53 conts.put(cont.getName(), cont);
57 public boolean equals(Object obj) {
61 if (!this.getClass().equals(obj.getClass())) {
64 LstItem lstItem = (LstItem) obj;
65 if (!this.conts.equals(lstItem.conts)) {
68 if (!this.lfs.equals(lstItem.lfs)) {
71 if (!this.lfLsts.equals(lstItem.lfLsts)) {
74 if (!this.lsts.equals(lstItem.lsts)) {
81 public int hashCode() {
84 result = prime * result + ((lfs == null) ? 0 : lfs.hashCode());
85 result = prime * result + ((lfLsts == null) ? 0 : lfLsts.hashCode());
86 result = prime * result + ((lsts == null) ? 0 : lsts.hashCode());
87 result = prime * result + ((conts == null) ? 0 : conts.hashCode());
92 public String toString() {
93 return "lst item of " + lstName;
96 public void setLstName(String name) {