|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnct.graph.BasicWeightedNode<IDType,WeightType>
public class BasicWeightedNode<IDType extends java.lang.Comparable<? super IDType>,WeightType extends java.lang.Comparable<? super WeightType>>
| Constructor Summary | |
|---|---|
BasicWeightedNode(IDType id,
WeightType weight)
|
|
| Method Summary | |
|---|---|
int |
compareTo(WeightedNode<IDType,WeightType> other)
|
IDType |
getID()
|
WeightType |
getWeight()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BasicWeightedNode(IDType id,
WeightType weight)
| Method Detail |
|---|
public WeightType getWeight()
getWeight in interface WeightedNode<IDType extends java.lang.Comparable<? super IDType>,WeightType extends java.lang.Comparable<? super WeightType>>public IDType getID()
getID in interface WeightedNode<IDType extends java.lang.Comparable<? super IDType>,WeightType extends java.lang.Comparable<? super WeightType>>public int compareTo(WeightedNode<IDType,WeightType> other)
compareTo in interface java.lang.Comparable<WeightedNode<IDType extends java.lang.Comparable<? super IDType>,WeightType extends java.lang.Comparable<? super WeightType>>>public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||