Class IntentOperationContext<T extends Intent>

  • Type Parameters:
    T - the type of installable Intent

    public class IntentOperationContext<T extends Intent>
    extends Object
    Operation context for installable Intent.
    • Constructor Detail

      • IntentOperationContext

        public IntentOperationContext​(List<T> intentsToUninstall,
                                      List<T> intentsToInstall,
                                      IntentInstallationContext intentInstallationContext)
        Creates an operation context.
        Parameters:
        intentsToUninstall - the Intents to uninstall
        intentsToInstall - the Intents to install
        intentInstallationContext - the high level Intent installation information
    • Method Detail

      • intentsToUninstall

        public List<T> intentsToUninstall()
        Retrieves installable Intents to uninstall.
        Returns:
        the Intents to uninstall
      • intentsToInstall

        public List<T> intentsToInstall()
        Retrieves installable Intents to install.
        Returns:
        the Intents to install
      • intentInstallationContext

        public IntentInstallationContext intentInstallationContext()
        Retrieves high level Intent installation information.
        Returns:
        the high level Intent installation information
      • toUninstall

        public Optional<IntentData> toUninstall()
        Retrieves high level Intent data to uninstall.
        Returns:
        high level Intent data to uninstall
      • toInstall

        public Optional<IntentData> toInstall()
        Retrieves high level Intent data to install.
        Returns:
        high level Intent data to install
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object