public class IntentInstallationContext
extends java.lang.Object
Constructor and Description |
---|
IntentInstallationContext(IntentData toUninstall,
IntentData toInstall)
Creates an Intent installation context by given information.
|
Modifier and Type | Method and Description |
---|---|
void |
addErrorContext(IntentOperationContext context)
Adds an error context.
|
void |
addPendingContext(IntentOperationContext context)
Adds a pending context.
|
java.util.Set<IntentOperationContext> |
errorContexts()
Retrieves the error contexts.
|
boolean |
isPendingContextsEmpty()
Check if pending context is empty.
|
java.util.Set<IntentOperationContext> |
pendingContexts()
Retrieves the pending contexts.
|
void |
removePendingContext(IntentOperationContext context)
Removes a pending operation context.
|
java.util.Optional<IntentData> |
toInstall()
Retrieves the Intent data which to be installed.
|
java.lang.String |
toString() |
java.util.Optional<IntentData> |
toUninstall()
Retrieves the Intent data which to be uninstalled.
|
public IntentInstallationContext(IntentData toUninstall, IntentData toInstall)
toUninstall
- the Intent to uninstalltoInstall
- the Intent to installpublic void removePendingContext(IntentOperationContext context)
context
- the operation context to be addedpublic void addPendingContext(IntentOperationContext context)
context
- the operation context to be addedpublic void addErrorContext(IntentOperationContext context)
context
- the error context to be added.public java.util.Set<IntentOperationContext> pendingContexts()
public java.util.Set<IntentOperationContext> errorContexts()
public boolean isPendingContextsEmpty()
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Optional<IntentData> toUninstall()
public java.util.Optional<IntentData> toInstall()