1 package com.atlassian.activeobjects.pageobjects;
2
3 public final class AoTable {
4 public final String plugin;
5 public final String table;
6 public final String rows;
7
8 private AoTable(String plugin, String table, String rows) {
9 this.plugin = plugin;
10 this.table = table;
11 this.rows = rows;
12 }
13
14 public static AoTable table(String plugin, String table, String rows) {
15 return new AoTable(plugin, table, rows);
16 }
17
18 @Override
19 public boolean equals(Object o) {
20 if (this == o) {
21 return true;
22 }
23 if (o == null || getClass() != o.getClass()) {
24 return false;
25 }
26
27 final AoTable aoTable = (AoTable) o;
28
29 if (plugin != null ? !plugin.equals(aoTable.plugin) : aoTable.plugin != null) {
30 return false;
31 }
32 if (rows != null ? !rows.equals(aoTable.rows) : aoTable.rows != null) {
33 return false;
34 }
35 if (table != null ? !table.equals(aoTable.table) : aoTable.table != null) {
36 return false;
37 }
38
39 return true;
40 }
41
42 @Override
43 public int hashCode() {
44 int result = plugin != null ? plugin.hashCode() : 0;
45 result = 31 * result + (table != null ? table.hashCode() : 0);
46 result = 31 * result + (rows != null ? rows.hashCode() : 0);
47 return result;
48 }
49
50 @Override
51 public String toString() {
52 return "AoTable{" +
53 "plugin='" + plugin + '\'' +
54 ", table='" + table + '\'' +
55 ", rows='" + rows + '\'' +
56 '}';
57 }
58 }