com.example.BeanWithList Maven / Gradle / Ivy
package com.example;
import java.lang.Object;
import java.lang.Override;
import java.lang.String;
import java.util.List;
import java.util.Objects;
/**
* Bean type BeanWithList.
*
* Auto-generated from specification.
*/
public final class BeanWithList {
private List names = new java.util.ArrayList();
/**
* Constructor.
*/
public BeanWithList() {
}
/**
* Getter for the property names.
* @return the value of names
*/
public List getNames() {
return names;
}
/**
* Setter for the property names.
* @param names the new value of names
*/
public void setNames(List names) {
Objects.requireNonNull(names);
this.names = names;
}
@Override
public String toString() {
return "BeanWithList[names=" + names + "]";
}
@Override
public int hashCode() {
return Objects.hash(names);
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
else if (other == null || !this.getClass().equals(other.getClass())) {
return false;
}
final BeanWithList that = (BeanWithList) other;
return this.names.equals(that.names);
}
}