package com.mavlushechka.a1qa.models; import java.util.Objects; public class Company { public final String name; public final String catchPhrase; public final String bs; public Company(String name, String catchPhrase, String bs) { this.name = name; this.catchPhrase = catchPhrase; this.bs = bs; } @Override public boolean equals(Object object) { if (this == object) return true; if (object == null || getClass() != object.getClass()) return false; Company company = (Company) object; return Objects.equals(name, company.name) && Objects.equals(catchPhrase, company.catchPhrase) && Objects.equals(bs, company.bs); } }