Class IntentOperationContext<T extends Intent>

  • Type Parameters:
    T - the type of installable Intent

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

      • IntentOperationContext

        public IntentOperationContext​(java.util.List<T> intentsToUninstall,
                                      java.util.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 java.util.List<T> intentsToUninstall()
        Retrieves installable Intents to uninstall.
        Returns:
        the Intents to uninstall
      • intentsToInstall

        public java.util.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 java.util.Optional<IntentData> toUninstall()
        Retrieves high level Intent data to uninstall.
        Returns:
        high level Intent data to uninstall
      • toInstall

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object