• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package com.android.settings.notification;
2 
3 import android.content.ComponentName;
4 import android.net.Uri;
5 
6 public class ZenRuleInfo {
7     @Override
equals(Object o)8     public boolean equals(Object o) {
9         if (this == o) return true;
10         if (o == null || getClass() != o.getClass()) return false;
11 
12         ZenRuleInfo that = (ZenRuleInfo) o;
13 
14         if (isSystem != that.isSystem) return false;
15         if (ruleInstanceLimit != that.ruleInstanceLimit) return false;
16         if (packageName != null ? !packageName.equals(that.packageName) : that.packageName != null)
17             return false;
18         if (title != null ? !title.equals(that.title) : that.title != null) return false;
19         if (settingsAction != null ? !settingsAction.equals(
20                 that.settingsAction) : that.settingsAction != null) return false;
21         if (configurationActivity != null ? !configurationActivity.equals(
22                 that.configurationActivity) : that.configurationActivity != null) return false;
23         if (defaultConditionId != null ? !defaultConditionId.equals(
24                 that.defaultConditionId) : that.defaultConditionId != null) return false;
25         if (serviceComponent != null ? !serviceComponent.equals(
26                 that.serviceComponent) : that.serviceComponent != null) return false;
27         if (id != null ? !id.equals(that.id) : that.id != null)
28             return false;
29         return packageLabel != null ? packageLabel.equals(
30                 that.packageLabel) : that.packageLabel == null;
31 
32     }
33 
34     public String packageName;
35     public String title;
36     public String settingsAction;
37     public ComponentName configurationActivity;
38     public Uri defaultConditionId;
39     public ComponentName serviceComponent;
40     public boolean isSystem;
41     public CharSequence packageLabel;
42     public int ruleInstanceLimit = -1;
43     public String id;
44 }
45