|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.umd.cloud9.io.triple.TripleOfIntsDouble
public class TripleOfIntsDouble
| Nested Class Summary | |
|---|---|
static class |
TripleOfIntsDouble.Comparator
Comparator optimized for TripleOfInts. |
| Constructor Summary | |
|---|---|
TripleOfIntsDouble()
Creates a TripleOnInts object. |
|
TripleOfIntsDouble(int left,
int middle,
double right)
Creates a TripleOnInts object. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TripleOfIntsDouble()
TripleOnInts object.
public TripleOfIntsDouble(int left,
int middle,
double right)
TripleOnInts object.
left - the left elementmiddle - the middle elementright - the right element| Method Detail |
|---|
public void readFields(DataInput in)
throws IOException
readFields in interface Writablein - source for raw byte representation
IOException
public void write(DataOutput out)
throws IOException
write in interface Writableout - where to write the raw byte representation
IOExceptionpublic 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)
equals in class Objectobj - object for comparison
true if obj is equal to this object, false
otherwisepublic int compareTo(TripleOfIntsDouble obj)
compareTo in interface Comparable<TripleOfIntsDouble>obj.public int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic TripleOfIntsDouble clone()
clone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||