Class IntentUtils


  • public final class IntentUtils
    extends Object
    Utilities for dealing with intents.
    • Method Detail

      • intentsAreEqual

        public static boolean intentsAreEqual​(Intent one,
                                              Intent two)
        Checks if two intents represent the same value.

        (Intent.equals(Object) only checks ID equality)

        Both intents must be of the same type.

        Parameters:
        one - first intent
        two - second intent
        Returns:
        true if the two intents represent the same value, otherwise false