Class IntentUtils


  • public final class IntentUtils
    extends java.lang.Object
    Utilities for dealing with intents.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean intentsAreEqual​(Intent one, Intent two)
      Checks if two intents represent the same value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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