public abstract class Intent extends Object implements BatchOperationTarget
Make sure that an Intent should be immutable when a new type is defined.
| Modifier | Constructor and Description |
|---|---|
protected |
Intent()
Constructor for serializer.
|
protected |
Intent(ApplicationId appId,
Collection<NetworkResource> resources)
Creates a new intent.
|
| Modifier and Type | Method and Description |
|---|---|
ApplicationId |
appId()
Returns the identifier of the application that requested the intent.
|
static void |
bindIdGenerator(IdGenerator newIdGenerator)
Binds an id generator for unique intent id generation.
|
boolean |
equals(Object obj) |
int |
hashCode() |
IntentId |
id()
Returns the intent identifier.
|
boolean |
isInstallable()
Indicates whether or not the intent is installable.
|
Collection<NetworkResource> |
resources()
Returns the collection of resources required for this intent.
|
static void |
unbindIdGenerator(IdGenerator oldIdGenerator)
Unbinds an id generator.
|
protected Intent()
protected Intent(ApplicationId appId, Collection<NetworkResource> resources)
appId - application identifierresources - required network resources (optional)public IntentId id()
public ApplicationId appId()
public Collection<NetworkResource> resources()
public boolean isInstallable()
public static void bindIdGenerator(IdGenerator newIdGenerator)
newIdGenerator - id generatorpublic static void unbindIdGenerator(IdGenerator oldIdGenerator)
oldIdGenerator - the current id generatorCopyright © 2015. All rights reserved.