|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectHeap.HeapElement
public static final class Heap.HeapElement
Helper class for implementing an object priority pair.
Method Summary | |
---|---|
Object |
element()
returns the object the HeapElement contains. |
boolean |
equals(Object o)
|
int |
hashCode()
Returns the hashCode of the object it contains. |
double |
score()
returns the priority associated with the element. |
String |
toString()
|
Methods inherited from class Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public int hashCode()
hashCode
in class Object
public boolean equals(Object o)
equals
in class Object
public Object element()
public double score()
public String toString()
toString
in class Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |