public class TripleOfIntsDouble extends Object implements org.apache.hadoop.io.WritableComparable<TripleOfIntsDouble>
| Modifier and Type | Class and Description |
|---|---|
static class |
TripleOfIntsDouble.Comparator
Comparator optimized for
TripleOfInts. |
| Constructor and Description |
|---|
TripleOfIntsDouble()
Creates a
TripleOnInts object. |
TripleOfIntsDouble(int left,
int middle,
double right)
Creates a
TripleOnInts object. |
| Modifier and Type | Method and Description |
|---|---|
TripleOfIntsDouble |
clone()
Clones this object.
|
int |
compareTo(TripleOfIntsDouble obj)
Defines a natural sort order for pairs.
|
boolean |
equals(Object obj)
Checks for equality.
|
int |
getLeftElement()
Returns the left element.
|
int |
getMiddleElement()
Returns the middle element.
|
double |
getRightElement()
Returns the right element.
|
int |
hashCode()
Returns a hash code value for this ThreeInts instance.
|
void |
readFields(DataInput in)
Deserializes this object.
|
void |
set(int left,
int middle,
double right)
Sets the elements of this triple.
|
String |
toString()
Generates human-readable String representation of this pair.
|
void |
write(DataOutput out)
Serializes this object.
|
public TripleOfIntsDouble()
TripleOnInts object.public TripleOfIntsDouble(int left,
int middle,
double right)
TripleOnInts object.left - the left elementmiddle - the middle elementright - the right elementpublic void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.Writablein - source for raw byte representationIOExceptionpublic void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.Writableout - where to write the raw byte representationIOExceptionpublic int getLeftElement()
public int getMiddleElement()
public double getRightElement()
public void set(int left,
int middle,
double right)
left - the left elementmiddle - the middle elementright - the right elementpublic boolean equals(Object obj)
public int compareTo(TripleOfIntsDouble obj)
compareTo in interface Comparable<TripleOfIntsDouble>obj.public int hashCode()
public String toString()
public TripleOfIntsDouble clone()
Copyright © 2015. All rights reserved.