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         return packageLabel != null ? packageLabel.equals(
28                 that.packageLabel) : that.packageLabel == null;
29 
30     }
31 
32     public String packageName;
33     public String title;
34     public String settingsAction;
35     public ComponentName configurationActivity;
36     public Uri defaultConditionId;
37     public ComponentName serviceComponent;
38     public boolean isSystem;
39     public CharSequence packageLabel;
40     public int ruleInstanceLimit = -1;
41 }
42