public class Task
extends java.lang.Object
implements java.io.Serializable
Task
object--only
those what were asked for from the API returning the object.Constructor and Description |
---|
Task(java.lang.String task,
java.util.Map<java.lang.String,Attribute> attributes) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Attribute |
getAttribute(java.lang.String name)
Gets an attribute for this task at the time it was looked up.
|
Attribute[] |
getAttributes()
Gets all the attributes that were looked up with this task.
|
java.lang.String |
getTaskId()
Gets the task ID for this task.
|
int |
hashCode() |
java.lang.String |
toString() |
public Task(java.lang.String task, java.util.Map<java.lang.String,Attribute> attributes)
public java.lang.String getTaskId()
public Attribute getAttribute(java.lang.String name)
name
- the name of the attribute to get.null
if the attribute did
not exist on task or was not requested when looking it up.public Attribute[] getAttributes()
getAttribute(String)
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
© Copyright IBM Corporation 2000, 2009
US Government Users Restricted Rights--Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
Notices