1 package org.opendaylight.controller.sal.restconf.impl.test.structures;
5 public class LfLst extends YangElement {
8 public LfLst(String name) {
10 lfs = new HashSet<>();
13 public LfLst addLf(String value) {
14 return addLf(new Lf(value));
18 public LfLst addLf(Lf lf) {
19 while (this.lfs.contains(lf)) {
20 lf.incNumOfEqualItems();
26 public Set<Lf> getLfs() {
31 public boolean equals(Object obj) {
35 if (!this.getClass().equals(obj.getClass())) {
38 if (!super.equals(obj)) {
41 LfLst lfLst = (LfLst) obj;
42 if (this.lfs == null) {
43 if (lfLst.lfs != null) {
46 } else if (!this.lfs.equals(lfLst.lfs)) {
53 public int hashCode() {
55 int result = super.hashCode();
56 result = prime * result + ((lfs == null) ? 0 : lfs.hashCode());
61 public String toString() {
63 return super.toString();