1 package org.opendaylight.controller.sal.restconf.impl.test.structures;
3 public class Lf extends YangElement {
5 private int numOfEqualItems = 0;
8 public Lf(String name, String value) {
13 public Lf(String value) {
18 public String getValue() {
23 public boolean equals(Object obj) {
27 if (!this.getClass().equals(obj.getClass())) {
30 if (!super.equals(obj)) {
34 if (this.value == null) {
35 if (lf.value != null) {
38 } else if (!this.value.equals(lf.value)) {
41 if (this.numOfEqualItems != lf.numOfEqualItems) {
47 public void incNumOfEqualItems() {
48 this.numOfEqualItems++;
53 public int hashCode() {
55 int result = super.hashCode();
56 result = prime * result + ((value == null) ? 0 : value.hashCode());
57 result = prime * result + numOfEqualItems;
62 public String toString() {
63 return super.toString() + ":" + value;