Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## dataStructures
Class ComparableEdge

    java.lang.Object
      |
      +--dataStructures.Edge
            |
            +--dataStructures.ComparableEdge

public class ComparableEdge
extends Edge
implements java.lang.Comparable

Constructor Summary
`ComparableEdge(int theVertex1, int theVertex2, java.lang.Comparable theWeight)`

Method Summary
`int` | `compareTo(java.lang.Object x)`
`boolean` | `equals(java.lang.Object x)`

Methods inherited from class dataStructures.Edge
`toString`

Methods inherited from class java.lang.Object
`clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### ComparableEdge

    public ComparableEdge(int theVertex1,
                          int theVertex2,
                          java.lang.Comparable theWeight)

Method Detail

### compareTo

    public int compareTo(java.lang.Object x)

  Specified by:
    compareTo in interface java.lang.Comparable
  Returns:
    -1 if this < x, 0 if this == x, 1 if this > x

### equals

    public boolean equals(java.lang.Object x)

  Returns:
    true iff this == x
  Overrides:
    equals in class java.lang.Object

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD