summaryrefslogtreecommitdiff
path: root/src/main/java/com/mavlushechka/a1qa/models/Company.java
blob: 3a1a448f65f62d834bcf39bef3792c83ba0f1ff2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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);
    }

}