-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSQLITESetting.java
More file actions
67 lines (52 loc) · 2.28 KB
/
Copy pathSQLITESetting.java
File metadata and controls
67 lines (52 loc) · 2.28 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// ====================================================
// EasySQLITE Copyright(C) 2017 EasySQLITE
// This program comes with ABSOLUTELY NO WARRANTY; This is free software,
// and you are welcome to redistribute it under certain conditions; See
// file LICENSE, which is part of this source code package, for details.
// ====================================================
package com.dentrax.easysqlite.source;
import java.util.List;
/**
* Created by Furkan on 11/09/2013.
*/
public final class SQLITESetting {
public String DatabaseName;
public int DatabaseVersion;
public List<SQLITECreateInfo> CreateInfos;
public List<SQLITEUpgradeInfo> UpgradeInfos;
public SQLITESetting(String databaseName, int databaseVersion, List<SQLITECreateInfo> createInfos, List<SQLITEUpgradeInfo> upgradeInfos) {
this.DatabaseName = databaseName;
this.DatabaseVersion = databaseVersion;
this.CreateInfos = createInfos;
this.UpgradeInfos = upgradeInfos;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
SQLITESetting that = (SQLITESetting) o;
if (DatabaseVersion != that.DatabaseVersion) return false;
if (DatabaseName != null ? !DatabaseName.equals(that.DatabaseName) : that.DatabaseName != null)
return false;
if (CreateInfos != null ? !CreateInfos.equals(that.CreateInfos) : that.CreateInfos != null)
return false;
return UpgradeInfos != null ? UpgradeInfos.equals(that.UpgradeInfos) : that.UpgradeInfos == null;
}
@Override
public int hashCode() {
int result = DatabaseName != null ? DatabaseName.hashCode() : 0;
result = 31 * result + DatabaseVersion;
result = 31 * result + (CreateInfos != null ? CreateInfos.hashCode() : 0);
result = 31 * result + (UpgradeInfos != null ? UpgradeInfos.hashCode() : 0);
return result;
}
@Override
public String toString() {
return "SQLITESetting{" +
"DatabaseName='" + DatabaseName + '\'' +
", DatabaseVersion=" + DatabaseVersion +
", CreateInfo=" + CreateInfos +
", UpgradeInfo=" + UpgradeInfos +
'}';
}
}