LEFT | RIGHT |
1 /* | 1 /* |
2 * This file is part of Adblock Plus <https://adblockplus.org/>, | 2 * This file is part of Adblock Plus <https://adblockplus.org/>, |
3 * Copyright (C) 2006-2016 Eyeo GmbH | 3 * Copyright (C) 2006-2016 Eyeo GmbH |
4 * | 4 * |
5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
8 * | 8 * |
9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 * GNU General Public License for more details. | 12 * GNU General Public License for more details. |
13 * | 13 * |
14 * You should have received a copy of the GNU General Public License | 14 * You should have received a copy of the GNU General Public License |
15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. | 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
16 */ | 16 */ |
17 | 17 |
18 package org.adblockplus.libadblockplus; | 18 package org.adblockplus.libadblockplus; |
19 | 19 |
20 public class AppInfo | 20 public class AppInfo |
21 { | 21 { |
22 public final String version; | 22 public final String version; |
23 public final String name; | 23 public final String name; |
24 public final String application; | 24 public final String application; |
25 public final String applicationVersion; | 25 public final String applicationVersion; |
26 public final String locale; | 26 public final String locale; |
27 public final boolean developmentBuild; | 27 public final boolean developmentBuild; |
28 | 28 |
29 private AppInfo(final String version, final String name, final String applicat
ion, final String applicationVersion, | 29 private AppInfo(final String version, final String name, |
30 final String locale, final boolean developmentBuild) | 30 final String application, final String applicationVersion, |
| 31 final String locale, final boolean developmentBuild) |
31 { | 32 { |
32 this.version = version; | 33 this.version = version; |
33 this.name = name; | 34 this.name = name; |
34 this.application = application; | 35 this.application = application; |
35 this.applicationVersion = applicationVersion; | 36 this.applicationVersion = applicationVersion; |
36 this.locale = locale; | 37 this.locale = locale; |
37 this.developmentBuild = developmentBuild; | 38 this.developmentBuild = developmentBuild; |
38 } | 39 } |
39 | 40 |
40 public static Builder builder() | 41 public static Builder builder() |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 this.developmentBuild = developmentBuild; | 92 this.developmentBuild = developmentBuild; |
92 return this; | 93 return this; |
93 } | 94 } |
94 | 95 |
95 public AppInfo build() | 96 public AppInfo build() |
96 { | 97 { |
97 return new AppInfo(this.version, this.name, this.application, this.applica
tionVersion, this.locale, this.developmentBuild); | 98 return new AppInfo(this.version, this.name, this.application, this.applica
tionVersion, this.locale, this.developmentBuild); |
98 } | 99 } |
99 } | 100 } |
100 } | 101 } |
LEFT | RIGHT |