Package org.onosproject.net.intent
Class IntentOperationContext<T extends Intent>
- java.lang.Object
-
- org.onosproject.net.intent.IntentOperationContext<T>
-
- Type Parameters:
T
- the type of installable Intent
public class IntentOperationContext<T extends Intent> extends java.lang.Object
Operation context for installable Intent.
-
-
Constructor Summary
Constructors Constructor Description IntentOperationContext(java.util.List<T> intentsToUninstall, java.util.List<T> intentsToInstall, IntentInstallationContext intentInstallationContext)
Creates an operation context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
hashCode()
IntentInstallationContext
intentInstallationContext()
Retrieves high level Intent installation information.java.util.List<T>
intentsToInstall()
Retrieves installable Intents to install.java.util.List<T>
intentsToUninstall()
Retrieves installable Intents to uninstall.java.util.Optional<IntentData>
toInstall()
Retrieves high level Intent data to install.java.util.Optional<IntentData>
toUninstall()
Retrieves high level Intent data to uninstall.
-
-
-
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 uninstallintentsToInstall
- the Intents to installintentInstallationContext
- 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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-