mirror of
https://github.com/CatimaLoyalty/Android.git
synced 2026-01-28 08:48:31 -05:00
LoyaltyCard: add isDuplicate(); Utils: add equals()
This commit is contained in:
@@ -667,4 +667,13 @@ public class Utils {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static boolean equals(final Object a, final Object b) {
|
||||
if (a == null && b == null) {
|
||||
return true;
|
||||
} else if (a == null || b == null) {
|
||||
return false;
|
||||
}
|
||||
return a.equals(b);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user