public class TaskResult extends Object implements Container<Summation>, Combinable<TaskResult>, Writable
Constructor and Description |
---|
TaskResult() |
Modifier and Type | Method and Description |
---|---|
TaskResult |
combine(TaskResult that)
Combine this with that.
|
int |
compareTo(TaskResult that) |
boolean |
equals(Object obj) |
Summation |
getElement() |
int |
hashCode()
Not supported
|
void |
readFields(DataInput in)
Deserialize the fields of this object from
in . |
String |
toString() |
static TaskResult |
valueOf(String s)
Covert a String to a TaskResult
|
void |
write(DataOutput out)
Serialize the fields of this object to
out . |
public Summation getElement()
getElement
in interface Container<Summation>
public int compareTo(TaskResult that)
compareTo
in interface Comparable<TaskResult>
public TaskResult combine(TaskResult that)
combine
in interface Combinable<TaskResult>
that
- Another object.public void readFields(DataInput in) throws IOException
in
.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields
in interface Writable
in
- DataInput
to deseriablize this object from.IOException
public void write(DataOutput out) throws IOException
out
.write
in interface Writable
out
- DataOuput
to serialize this object into.IOException
public static TaskResult valueOf(String s)
Copyright © 2013 Apache Software Foundation. All rights reserved.